Skip to content

Commit

Permalink
Display line numbers on the main window only (#1789)
Browse files Browse the repository at this point in the history
  • Loading branch information
joelim-work authored Aug 10, 2024
1 parent efde1a2 commit 505c4ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ func (win *win) printDir(ui *ui, dir *dir, context *dirContext, dirStyle *dirSty

var lnwidth int

if gOpts.number || gOpts.relativenumber {
if dirStyle.role == Active && (gOpts.number || gOpts.relativenumber) {
lnwidth = 1
if gOpts.number && gOpts.relativenumber {
lnwidth++
Expand Down

0 comments on commit 505c4ef

Please sign in to comment.