Use an arrow to indicate the current line #2399
CatsDeservePets
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
|
I guess you can prevent the misuse by parsing diff --git a/ui.go b/ui.go
index 3aac8e8..784cfe0 100644
--- a/ui.go
+++ b/ui.go
@@ -455,11 +455,11 @@ func (win *win) printDir(ui *ui, dir *dir, context *dirContext, dirStyle *dirSty
}
}
- fmtStr := optionToFmtstr(gOpts.numberfmt)
+ fmtStr := gOpts.numberfmt
if i == dir.pos && gOpts.numbercursorfmt != "" {
- fmtStr = optionToFmtstr(gOpts.numbercursorfmt)
+ fmtStr = gOpts.numbercursorfmt
}
- win.print(ui.screen, 0, i, tcell.StyleDefault, fmt.Sprintf(fmtStr, ln))
+ win.print(ui.screen, 0, i, parseEscapeSequence(fmtStr), ln)
}
path := filepath.Join(dir.path, f.Name()) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Due to lack of validation and the way relative line numbers are padded, one can misuse the new numbercursorfmt option to use symbols like arrows as the current line indicator (it's not a bug, it's a feature😃):
Beta Was this translation helpful? Give feedback.
All reactions