mirror of https://github.com/Llewellynvdm/fzf.git
Fix inconsistent preview window width with --border
fzf --preview 'cat {}' --bind 'space:change-preview-window:up|right' --border
This commit is contained in:
parent
70c461c60b
commit
a76c055b63
|
@ -1301,10 +1301,6 @@ func (t *Terminal) resizeWindows(forcePreview bool) {
|
|||
if previewOpts.hidden {
|
||||
return
|
||||
}
|
||||
// Put scrollbar closer to the right border for consistent look
|
||||
if t.borderShape.HasRight() {
|
||||
width++
|
||||
}
|
||||
if previewOpts.position == posUp {
|
||||
t.window = t.tui.NewWindow(
|
||||
marginInt[0]+pheight, marginInt[3], width, height-pheight, false, noBorder)
|
||||
|
|
Loading…
Reference in New Issue