1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-01 00:54:58 +02:00

bump gocui

This commit is contained in:
Jesse Duffield
2021-02-11 21:04:58 +11:00
parent 79b256a0fa
commit 862ced3bd0
2 changed files with 4 additions and 8 deletions

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