From 1f44f80e4ab8daa718b1824dde73419795a548fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Thu, 10 Oct 2019 16:20:57 +0200 Subject: [PATCH] [escher] Scroll to cursor when selecting up / down --- escher/src/text_area.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/escher/src/text_area.cpp b/escher/src/text_area.cpp index f7cc01da9..e3706f678 100644 --- a/escher/src/text_area.cpp +++ b/escher/src/text_area.cpp @@ -553,4 +553,5 @@ void TextArea::selectUpDown(bool up) { contentView()->moveCursorGeo(0, up ? -1 : 1); const char * newCursorLocation = contentView()->cursorLocation(); contentView()->addSelection(up ? newCursorLocation : currentCursorLocation, up ? currentCursorLocation : newCursorLocation); + scrollToCursor(); }