Fix width used for line numbers (#1151)
This commit is contained in:
1 parent
db9de4d4de
commit
0bf17dd3f0
1 file changed
+1
-1
@@ -398,7 +398,7 @@ func (win *win) printDir(screen tcell.Screen, dir *dir, context *dirContext, dir
|
||||
if gOpts.number && gOpts.relativenumber {
|
||||
lnwidth++
|
||||
}
|
||||
for j := 10; j < len(dir.files); j *= 10 {
|
||||
for j := 10; j <= len(dir.files); j *= 10 {
|
||||
lnwidth++
|
||||
}
|
||||
lnformat = fmt.Sprintf("%%%d.d ", lnwidth)
|
||||
|
||||
Reference in new issue
Block a user