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.
This commit is contained in:
Zac 2021-01-25 04:24:56 +10:00 committed by GitHub
commit 330ab52ddb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: sideshowbarker 2024-07-18 22:53:58 +09:00
3 changed files with 273 additions and 4 deletions

View file

@ -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);