Skip to content

Commit

Permalink
Fix invalid line number
Browse files Browse the repository at this point in the history
  • Loading branch information
noborus committed Mar 25, 2024
1 parent da5b8af commit 11ff74e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions oviewer/draw.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ func (root *Root) drawLineNumber(lN int, y int, valid bool) {
}
if !valid {
root.blankLineNumber(y)
return
}
// Line numbers start at 1 except for skip and header lines.
numC := StrToContents(fmt.Sprintf("%*d", root.scr.startX-1, lN-m.firstLine()+1), m.TabWidth)
Expand Down

0 comments on commit 11ff74e

Please sign in to comment.