summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/EditingEngine.h
diff options
context:
space:
mode:
authorZac <zacary.gillerat@connect.qut.edu.au>2021-01-25 04:24:56 +1000
committerGitHub <noreply@github.com>2021-01-24 19:24:56 +0100
commit330ab52ddb8befa74a18a86ee53c033e1267631a (patch)
treea7ae9730b65bd02d0c11045935aa284350c18552 /Userland/Libraries/LibGUI/EditingEngine.h
parent0678dab7dca0bba07e9370140637cbac64625a42 (diff)
downloadserenity-330ab52ddb8befa74a18a86ee53c033e1267631a.zip
Vim: More correct word jumping (#5090)
Implemented move_to_beginning_of_next(), move_to_end_of_next(), move_to_beginning_of_previous() and move_to_end_of_previous() functions for more correct word jumping than the move_to_xxx_span() methods that were previously used.
Diffstat (limited to 'Userland/Libraries/LibGUI/EditingEngine.h')
-rw-r--r--Userland/Libraries/LibGUI/EditingEngine.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/EditingEngine.h b/Userland/Libraries/LibGUI/EditingEngine.h
index 37c25410ce..b8f65b4113 100644
--- a/Userland/Libraries/LibGUI/EditingEngine.h
+++ b/Userland/Libraries/LibGUI/EditingEngine.h
@@ -68,6 +68,10 @@ protected:
void move_page_down(const KeyEvent& event);
void move_to_first_line();
void move_to_last_line();
+ void move_to_beginning_of_next_word();
+ void move_to_end_of_next_word();
+ void move_to_end_of_previous_word();
+ void move_to_beginning_of_previous_word();
void move_up(const KeyEvent& event, double page_height_factor);
void move_down(const KeyEvent& event, double page_height_factor);