From afa7008e4e99c7e14cda3dcf2d6bac269719eb12 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Fri, 30 Jul 2021 14:38:02 +0300 Subject: InputWidget: Home/End moves to start/end of wrapped line segment --- src/ui/inputwidget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { setCursor_InputWidget(d, key == SDLK_HOME ? zero_I2() : curMax); } else { - setCursor_InputWidget(d, key == SDLK_HOME ? lineFirst : lineLast); + moveCursorByLine_InputWidget_(d, 0, key == SDLK_HOME ? -1 : +1); } refresh_Widget(w); return iTrue; -- cgit v1.2.3