diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-08-02 13:00:39 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-08-02 13:00:39 +0300 |
commit | 32126705b08db2f0afb4e91db13e1f83f723fc96 (patch) | |
tree | ee1aaca1ffa35aece649a637b9f9722237dddba0 | |
parent | c39fd136faa9388ea782a7615bca90224400b802 (diff) |
InputWidget: Fixed selection update after deleting
-rw-r--r-- | src/ui/inputwidget.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/inputwidget.c b/src/ui/inputwidget.c index 7786cf22..ceeeb475 100644 --- a/src/ui/inputwidget.c +++ b/src/ui/inputwidget.c | |||
@@ -1194,6 +1194,7 @@ static iBool deleteMarked_InputWidget_(iInputWidget *d) { | |||
1194 | if (!isEmpty_Range(&m)) { | 1194 | if (!isEmpty_Range(&m)) { |
1195 | deleteIndexRange_InputWidget_(d, m); | 1195 | deleteIndexRange_InputWidget_(d, m); |
1196 | setCursor_InputWidget(d, indexToCursor_InputWidget_(d, m.start)); | 1196 | setCursor_InputWidget(d, indexToCursor_InputWidget_(d, m.start)); |
1197 | iZap(d->mark); /* setCursor thinks we're marking when Shift is down */ | ||
1197 | return iTrue; | 1198 | return iTrue; |
1198 | } | 1199 | } |
1199 | return iFalse; | 1200 | return iFalse; |