summaryrefslogtreecommitdiffstats
path: root/src/terminal.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-05-19 11:26:32 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-05-19 15:51:32 +0900
commit5b204c54f9d16accdf66bb24477e9eff4fc3a21a (patch)
treecef3aa9b6fd733c407c2e77ea5a0eb486627982e /src/terminal.go
parent04dfb14e3215f578d44cdc117d9f19920af21faa (diff)
Change default pointer and marker character
* Pointer: '▌' * Marker: '▏' They will still be set to '>' if `--no-unicode` is given. Reasons: * They look okay * They work better with multi-line items (WIP)
Diffstat (limited to 'src/terminal.go')
-rw-r--r--src/terminal.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/terminal.go b/src/terminal.go
index 530c9eb6..01960552 100644
--- a/src/terminal.go
+++ b/src/terminal.go
@@ -811,8 +811,8 @@ func NewTerminal(opts *Options, eventBox *util.EventBox, executor *util.Executor
lastAction: actStart,
lastFocus: minItem.Index()}
t.prompt, t.promptLen = t.parsePrompt(opts.Prompt)
- t.pointer, t.pointerLen = t.processTabs([]rune(opts.Pointer), 0)
- t.marker, t.markerLen = t.processTabs([]rune(opts.Marker), 0)
+ t.pointer, t.pointerLen = t.processTabs([]rune(*opts.Pointer), 0)
+ t.marker, t.markerLen = t.processTabs([]rune(*opts.Marker), 0)
// Pre-calculated empty pointer and marker signs
t.pointerEmpty = strings.Repeat(" ", t.pointerLen)
t.markerEmpty = strings.Repeat(" ", t.markerLen)