mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-05-28 21:30:49 +00:00
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 {
|
if previewOpts.hidden {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// Put scrollbar closer to the right border for consistent look
|
|
||||||
if t.borderShape.HasRight() {
|
|
||||||
width++
|
|
||||||
}
|
|
||||||
if previewOpts.position == posUp {
|
if previewOpts.position == posUp {
|
||||||
t.window = t.tui.NewWindow(
|
t.window = t.tui.NewWindow(
|
||||||
marginInt[0]+pheight, marginInt[3], width, height-pheight, false, noBorder)
|
marginInt[0]+pheight, marginInt[3], width, height-pheight, false, noBorder)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user