From 505c4ef6c0dec48cf48161dd3acd8c42de8837ad Mon Sep 17 00:00:00 2001 From: Joe Lim <50560759+joelim-work@users.noreply.github.com> Date: Sat, 10 Aug 2024 22:39:21 +1000 Subject: [PATCH] Display line numbers on the main window only (#1789) --- ui.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui.go b/ui.go index 90decbba..5d6e22ca 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++