diff --git a/vendor/github.com/jesseduffield/gocui/keybinding.go b/vendor/github.com/jesseduffield/gocui/keybinding.go index da08e6e2b..813ebae70 100644 --- a/vendor/github.com/jesseduffield/gocui/keybinding.go +++ b/vendor/github.com/jesseduffield/gocui/keybinding.go @@ -185,6 +185,7 @@ var translate = map[string]Key{ "Backspace": KeyBackspace, "CtrlH": KeyCtrlH, "Tab": KeyTab, + "BackTab": KeyBacktab, "CtrlI": KeyCtrlI, "CtrlJ": KeyCtrlJ, "CtrlK": KeyCtrlK, diff --git a/vendor/github.com/jesseduffield/gocui/view.go b/vendor/github.com/jesseduffield/gocui/view.go index 2f294fe03..4e4de080d 100644 --- a/vendor/github.com/jesseduffield/gocui/view.go +++ b/vendor/github.com/jesseduffield/gocui/view.go @@ -780,14 +780,9 @@ func (v *View) draw() error { return err } - if c.chr != 0 { - // If it is a rune, add rune width - x += runewidth.RuneWidth(c.chr) - } else { - // If it is NULL rune, add 1 to be able to use SetWritePos - // (runewidth.RuneWidth of space is 1) - x++ - } + // Not sure why the previous code was here but it caused problems + // when typing wide characters in an editor + x += runewidth.RuneWidth(c.chr) } y++ }