From 356f978594115ff87c69fd227adbb7d5967d38a2 Mon Sep 17 00:00:00 2001 From: Joe Lim <50560759+joelim-work@users.noreply.github.com> Date: Thu, 20 Jun 2024 16:24:10 +1000 Subject: [PATCH] Display line numbers on the main windows only --- ui.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui.go b/ui.go index f7684ece..0dfafa9b 100644 --- a/ui.go +++ b/ui.go @@ -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++