Support custom line number colors (#1177)

* Support custom line number colors

* Move eval case
This commit is contained in:
Joe Lim authored and GitHub committed 2023-04-01 16:05:44 +03:00
1 parent 6ffc4a4c8a
commit 11caeddb35
7 files changed
+23 -2

No files matched your search

+1 -2
View File
@@ -347,7 +347,6 @@ type dirStyle struct {
}
// These colors are not currently customizeable
const LineNumberColor = tcell.ColorOlive
const SelectionColor = tcell.ColorPurple
const YankColor = tcell.ColorOlive
const CutColor = tcell.ColorMaroon
@@ -427,7 +426,7 @@ func (win *win) printDir(screen tcell.Screen, dir *dir, context *dirContext, dir
}
}
win.print(screen, 0, i, tcell.StyleDefault.Foreground(LineNumberColor), ln)
win.print(screen, 0, i, tcell.StyleDefault, fmt.Sprintf(optionToFmtstr(gOpts.numberfmt), ln))
}
path := filepath.Join(dir.path, f.Name())