Skip to content
Myr

Fix preview window incorrectly rendering empty line at the bottom

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 ee5302f · Browse files · 1 file+6 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+6 added−2 removed

  • other:+6 added−2 removed

1 file+6 added−2 removed

modified:src/terminal.go+6 added-2 removed
2720 unmodified lines
2721 if unchanged && lineNo == 0 {2722 break2723 }2724 if lbg >= 0 {2725 t.pwindow.CFill(-1, lbg, tui.AttrRegular,2725 fillRet = t.pwindow.CFill(-1, lbg, tui.AttrRegular,2726 strings.Repeat(" ", t.pwindow.Width()-t.pwindow.X())+"\n")2727 } else {2728 t.pwindow.Fill("\n")2728 fillRet = t.pwindow.Fill("\n")2729 }2730 if fillRet == tui.FillSuspend {2731 t.previewed.filled = true2732 break2733 }2734 }2735 lineNo++2736 }2737 t.previewed.image = image
2337 unmodified lines