summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/EditingEngine.h
diff options
context:
space:
mode:
authorMatthew Hall <matthew@quickbeam.me.uk>2021-07-10 21:48:49 +0100
committerGunnar Beutner <gunnar@beutner.name>2021-07-15 10:10:07 +0200
commita7e7f62d08c4dab602c082e4919dc3564e3e3f5e (patch)
tree6280ef9fd77c6d34ef25b080f63ebe6ecac0c9e2 /Userland/Libraries/LibGUI/EditingEngine.h
parent5d1676b05aa7c8a414881f0414ef3370581d8be5 (diff)
downloadserenity-a7e7f62d08c4dab602c082e4919dc3564e3e3f5e.zip
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.
Diffstat (limited to 'Userland/Libraries/LibGUI/EditingEngine.h')
-rw-r--r--Userland/Libraries/LibGUI/EditingEngine.h2
1 files changed, 2 insertions, 0 deletions
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();