diff options
author | Tobias Gläßer <tobimensch@users.noreply.github.com> | 2018-11-13 07:42:52 -0500 |
---|---|---|
committer | Thomas Buckley-Houston <tom@tombh.co.uk> | 2019-06-24 09:12:20 +0300 |
commit | 7a622b230b630560d31a044d5cefa035ce8f35fd (patch) | |
tree | 40f807f40cd8d25cbc1d4afd51cca0276d825804 | |
parent | ed79db0510ee90031e1e7cd37f0718d9bd7aa592 (diff) |
Fixed bug where keyEvents variable was initialized wrongly. This led to key combinations only working after a certain number of key strokes.
-rw-r--r-- | interfacer/src/browsh/vim_mode.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/interfacer/src/browsh/vim_mode.go b/interfacer/src/browsh/vim_mode.go index 0543d5b..61edf87 100644 --- a/interfacer/src/browsh/vim_mode.go +++ b/interfacer/src/browsh/vim_mode.go @@ -51,7 +51,7 @@ type hintRect struct { var ( currentVimMode = normalMode vimCommandsBindings = make(map[string]string) - keyEvents = make([]*tcell.EventKey, 11) + keyEvents = make([]*tcell.EventKey, 0, 11) waitModeStartTime time.Time findText string // Marks |