mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-30 06:37:14 +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
|
lastWidth = width
|
||||||
rw = 0
|
rw = 0
|
||||||
if c == '\t' {
|
if c == '\t' {
|
||||||
rw := tabsize - (lineIdx % tabsize)
|
rw = tabsize - (lineIdx % tabsize)
|
||||||
width += rw
|
width += rw
|
||||||
} else {
|
} else {
|
||||||
rw = runewidth.RuneWidth(c)
|
rw = runewidth.RuneWidth(c)
|
||||||
|
|||||||
Reference in New Issue
Block a user