1
0
зеркало из https://github.com/glebtv/tui-textarea.git synced 2026-08-28 11:36:17 +03:00

fix vim example's e mapping in operator-pending mode (fix #76)

Этот коммит содержится в:
rhysd
2024-08-01 23:55:35 +09:00
родитель 2ebce01d06
Коммит 76f1ab6b5a

Просмотреть файл

@@ -112,6 +112,13 @@ impl Vim {
key: Key::Char('w'),
..
} => textarea.move_cursor(CursorMove::WordForward),
Input {
key: Key::Char('e'),
ctrl: false,
..
} if matches!(self.mode, Mode::Operator(_)) => {
textarea.move_cursor(CursorMove::WordForward) // `e` behaves like `w` in operator-pending mode
}
Input {
key: Key::Char('e'),
ctrl: false,