Skip to content
Myr

Revert horizontal padding around preview window on "noborder"

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

Use 2-space horizontal padding so that the preview content is aligned with the candidate list when the position of the preview window is `up` or `down`.

authored by Junegunn Choi · committed by Junegunn Choi · parent 43798fc · 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
712 unmodified lines
713 y += 1714 } else {715 previewBorder := tui.MakeTransparentBorder()716 t.pborder = t.tui.NewWindow(y, x, w, h, true, previewBorder)717 pwidth -= 2718 x += 1717 pwidth -= 4718 x += 2719 }720 // ncurses auto-wraps the line when the cursor reaches the right-end of721 // the window. To prevent unintended line-wraps, we use the width one722 // column larger than the desired value.
1637 unmodified lines