зеркало из
https://github.com/glebtv/tui-textarea.git
synced 2026-09-08 00:15:50 +03:00
fix vim example's e mapping in operator-pending mode (fix #76)
Этот коммит содержится в:
@@ -112,6 +112,13 @@ impl Vim {
|
|||||||
key: Key::Char('w'),
|
key: Key::Char('w'),
|
||||||
..
|
..
|
||||||
} => textarea.move_cursor(CursorMove::WordForward),
|
} => 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 {
|
Input {
|
||||||
key: Key::Char('e'),
|
key: Key::Char('e'),
|
||||||
ctrl: false,
|
ctrl: false,
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user