1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-03-17 21:18:31 +02:00

bump gocui

This commit is contained in:
Jesse Duffield 2021-02-11 21:04:58 +11:00
parent a3ac8193d6
commit 355f1810c7
2 changed files with 4 additions and 8 deletions

View File

@ -185,6 +185,7 @@ var translate = map[string]Key{
"Backspace": KeyBackspace,
"CtrlH": KeyCtrlH,
"Tab": KeyTab,
"BackTab": KeyBacktab,
"CtrlI": KeyCtrlI,
"CtrlJ": KeyCtrlJ,
"CtrlK": KeyCtrlK,

View File

@ -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++
}