mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-21 15:33:50 -07:00
Fix inconsistent preview window width with --border
fzf --preview 'cat {}' --bind 'space:change-preview-window:up|right' --border
This commit is contained in:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user