From a7e7f62d08c4dab602c082e4919dc3564e3e3f5e Mon Sep 17 00:00:00 2001 From: Matthew Hall Date: Sat, 10 Jul 2021 21:48:49 +0100 Subject: VimEditingEngine: Operate on real lines rather than wrapped ones In the normal editing engine keys like Home, End etc work on visual lines, but vim operates on real ones. Eg if you have a really long line and wrapping is on then in normal editing Home would take you to the beginning of the wrapped line, but 'I' would put you insert mode at the beginning of the real line in vim. --- Userland/Libraries/LibGUI/EditingEngine.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Userland/Libraries/LibGUI/EditingEngine.h') diff --git a/Userland/Libraries/LibGUI/EditingEngine.h b/Userland/Libraries/LibGUI/EditingEngine.h index d2783f27e4..f3cc449224 100644 --- a/Userland/Libraries/LibGUI/EditingEngine.h +++ b/Userland/Libraries/LibGUI/EditingEngine.h @@ -48,6 +48,8 @@ protected: void move_one_down(const KeyEvent& event); void move_to_previous_span(); void move_to_next_span(const KeyEvent& event); + void move_to_logical_line_beginning(); + void move_to_logical_line_end(); void move_to_line_beginning(); void move_to_line_end(); void move_page_up(); -- cgit v1.2.3