Skip to content
Myr

Fix incorrect tab character handling

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

Fix #2372

authored by Junegunn Choi · committed by Junegunn Choi · parent 5a874ae · Browse files · 1 file+2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:src/terminal.go+2 added-2 removed
1144 unmodified lines
1145func (t *Terminal) trimLeft(runes []rune, width int) ([]rune, int32) {1146 width = util.Max(0, width)1147 var trimmed int321148 // Assume that each rune takes at least one column on screen1149 if len(runes) > width {1150 diff := len(runes) - width1149 if len(runes) > width+2 {1150 diff := len(runes) - width - 21151 trimmed = int32(diff)1152 runes = runes[diff:]1153 }1154
1579 unmodified lines