mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-25 00:10:19 +09:00
Fix rare problem with tabs and horizontal scrolling
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user