summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2020-08-23 17:17:57 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2020-08-23 17:17:57 +0900
commitf2d44ab5a793906457f3d3384f09af085096138d (patch)
treee055962337cc06e2e93c11bceb8a268bd5aae4cc /src
parent43798fc2e801f4c5e6b9c3d048fb09eb8c7b6401 (diff)
downloadfzf-f2d44ab5a793906457f3d3384f09af085096138d.tar.gz
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`.
Diffstat (limited to 'src')
-rw-r--r--src/terminal.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/terminal.go b/src/terminal.go
index 2208cf47..d610c805 100644
--- a/src/terminal.go
+++ b/src/terminal.go
@@ -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