Skip to content
Myr

Do not display trailing carriage returns in the preview window

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

Close #3269

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

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/terminal.go+1 added-1 removed
1870 unmodified lines
1871 var lbg tui.Color = -11872 if ansi != nil {1873 ansi.lbg = -11874 }1875 line = strings.TrimSuffix(line, "\n")1875 line = strings.TrimRight(line, "\r\n")1876 if lineNo >= height || t.pwindow.Y() == height-1 && t.pwindow.X() > 0 {1877 t.previewed.filled = true1878 t.previewer.scrollable = true1879 break
1816 unmodified lines