mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-12-23 19:39:07 +00:00
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`.
This commit is contained in:
parent
43798fc2e8
commit
f2d44ab5a7
@ -714,8 +714,8 @@ func (t *Terminal) resizeWindows() {
|
|||||||
} else {
|
} else {
|
||||||
previewBorder := tui.MakeTransparentBorder()
|
previewBorder := tui.MakeTransparentBorder()
|
||||||
t.pborder = t.tui.NewWindow(y, x, w, h, true, previewBorder)
|
t.pborder = t.tui.NewWindow(y, x, w, h, true, previewBorder)
|
||||||
pwidth -= 2
|
pwidth -= 4
|
||||||
x += 1
|
x += 2
|
||||||
}
|
}
|
||||||
// ncurses auto-wraps the line when the cursor reaches the right-end of
|
// 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
|
// the window. To prevent unintended line-wraps, we use the width one
|
||||||
|
Loading…
Reference in New Issue
Block a user