mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-21 08:20:23 +00:00
Fix rare problem with tabs and horizontal scrolling
This commit is contained in:
parent
a6ee75a9cf
commit
57110c98e4
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ func visualToCharPos(visualIndex int, lineN int, str string, buf *Buffer, tabsiz
|
|||
lastWidth = width
|
||||
rw = 0
|
||||
if c == '\t' {
|
||||
rw := tabsize - (lineIdx % tabsize)
|
||||
rw = tabsize - (lineIdx % tabsize)
|
||||
width += rw
|
||||
} else {
|
||||
rw = runewidth.RuneWidth(c)
|
||||
|
|
|
|||
Loading…
Reference in a new issue