Don't indent softwrap if ruler is off
Ref
@@ -274,10 +274,12 @@ func (w *BufWindow) LocFromVisual(svloc buffer.Loc) buffer.Loc {
}
vloc.X = 0
// This will draw an empty line number because the current line is wrapped
+ if b.Settings["ruler"].(bool) {
vloc.X += maxLineNumLength + 1
}
}
}
+ }
if vloc.Y+w.Y == svloc.Y {
return bloc
}
@@ -573,10 +575,12 @@ func (w *BufWindow) displayBuffer() {
}
vloc.X = 0
// This will draw an empty line number because the current line is wrapped
+ if b.Settings["ruler"].(bool) {
w.drawLineNum(lineNumStyle, true, maxLineNumLength, &vloc, &bloc)
}
}
}
+ }
style := config.DefStyle
for _, c := range cursors {
