зеркало из
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)
Этот коммит содержится в:
@@ -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,
|
||||
|
||||
Ссылка в новой задаче
Block a user