Skip to content
Snippets Groups Projects
Unverified Commit f2d44ab5 authored by Junegunn Choi's avatar Junegunn Choi
Browse files

Revert horizontal padding around preview window on "noborder"

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`.
parent 43798fc2
No related branches found
No related tags found
No related merge requests found
......@@ -714,8 +714,8 @@ func (t *Terminal) resizeWindows() {
} else {
previewBorder := tui.MakeTransparentBorder()
t.pborder = t.tui.NewWindow(y, x, w, h, true, previewBorder)
pwidth -= 2
x += 1
pwidth -= 4
x += 2
}
// ncurses auto-wraps the line when the cursor reaches the right-end of
// the window. To prevent unintended line-wraps, we use the width one
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment