Allow empty pointer and marker

Close #3879
This commit is contained in:
Junegunn Choi
2024-06-20 01:45:06 +09:00
parent 27d1f5e0a8
commit c3cc378d89
4 changed files with 58 additions and 21 deletions

View File

@@ -771,7 +771,7 @@ func NewTerminal(opts *Options, eventBox *util.EventBox, executor *util.Executor
pointerLen: uniseg.StringWidth(*opts.Pointer),
marker: *opts.Marker,
markerLen: uniseg.StringWidth(*opts.Marker),
markerMultiLine: opts.MarkerMulti,
markerMultiLine: *opts.MarkerMulti,
wordRubout: wordRubout,
wordNext: wordNext,
cx: len(input),