Fix width used for line numbers (#1151)

This commit is contained in:
Joe Lim authored and GitHub committed 2023-03-12 15:35:23 +03:00
1 parent db9de4d4de
commit 0bf17dd3f0
1 file changed
+1 -1
+1 -1
View File
@@ -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)