Skip to content
Myr

Do not allow tabs in pointer and marker

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 8937500 · Browse files · 1 file+4 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−2 removed

  • other:+4 added−2 removed

1 file+4 added−2 removed

modified:src/terminal.go+4 added-2 removed
749 unmodified lines
750 keepRight: opts.KeepRight,751 hscroll: opts.Hscroll,752 hscrollOff: opts.HscrollOff,753 scrollOff: opts.ScrollOff,754 pointer: *opts.Pointer,755 pointerLen: uniseg.StringWidth(*opts.Pointer),756 marker: *opts.Marker,757 markerLen: uniseg.StringWidth(*opts.Marker),758 wordRubout: wordRubout,759 wordNext: wordNext,760 cx: len(input),761 cy: 0,
74 unmodified lines
836 executing: util.NewAtomicBool(false),837 lastAction: actStart,838 lastFocus: minItem.Index()}839 t.prompt, t.promptLen = t.parsePrompt(opts.Prompt)836 t.pointer, t.pointerLen = t.processTabs([]rune(*opts.Pointer), 0)837 t.marker, t.markerLen = t.processTabs([]rune(*opts.Marker), 0)840 // Pre-calculated empty pointer and marker signs841 t.pointerEmpty = strings.Repeat(" ", t.pointerLen)842 t.markerEmpty = strings.Repeat(" ", t.markerLen)843 t.borderLabel, t.borderLabelLen = t.ansiLabelPrinter(opts.BorderLabel.label, &tui.ColBorderLabel, false)
3817 unmodified lines