diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-07-30 14:38:02 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-07-30 14:38:02 +0300 |
commit | afa7008e4e99c7e14cda3dcf2d6bac269719eb12 (patch) | |
tree | 2b35890a4429f7d4669cd5039da3ebb8014e2111 /src/ui/inputwidget.c | |
parent | d3f194aaaaf553a9bf12c113e8df25144d5c6364 (diff) |
InputWidget: Home/End moves to start/end of wrapped line segment
Diffstat (limited to 'src/ui/inputwidget.c')
-rw-r--r-- | src/ui/inputwidget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/inputwidget.c b/src/ui/inputwidget.c index 50b12d1f..2ca9bd55 100644 --- a/src/ui/inputwidget.c +++ b/src/ui/inputwidget.c | |||
@@ -1681,7 +1681,7 @@ static iBool processEvent_InputWidget_(iInputWidget *d, const SDL_Event *ev) { | |||
1681 | setCursor_InputWidget(d, key == SDLK_HOME ? zero_I2() : curMax); | 1681 | setCursor_InputWidget(d, key == SDLK_HOME ? zero_I2() : curMax); |
1682 | } | 1682 | } |
1683 | else { | 1683 | else { |
1684 | setCursor_InputWidget(d, key == SDLK_HOME ? lineFirst : lineLast); | 1684 | moveCursorByLine_InputWidget_(d, 0, key == SDLK_HOME ? -1 : +1); |
1685 | } | 1685 | } |
1686 | refresh_Widget(w); | 1686 | refresh_Widget(w); |
1687 | return iTrue; | 1687 | return iTrue; |