mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-16 15:23:48 -05:00
Better fix for #4465 - remove unnecessary erase
This commit is contained in:
@@ -2291,13 +2291,20 @@ func (t *Terminal) resizeWindows(forcePreview bool, redrawBorder bool) {
|
||||
innerMarginInt[0]+shift, innerMarginInt[3]+pwidth+m, innerWidth-pwidth-m, innerHeight-shrink, tui.WindowList, noBorder, true)
|
||||
|
||||
// Clear characters on the margin
|
||||
// fzf --bind 'space:preview(seq 100)' --preview-window left,1
|
||||
// fzf --bind 'space:toggle-preview' --preview ':' --preview-window left,1
|
||||
if !hasListBorder {
|
||||
for y := 0; y < innerHeight; y++ {
|
||||
t.window.Move(y, -1)
|
||||
t.window.Print(" ")
|
||||
}
|
||||
}
|
||||
// fzf --bind 'space:toggle-preview' --preview ':' --preview-window left,1,border-none
|
||||
if !previewOpts.Border().HasRight() {
|
||||
for y := 0; y < innerHeight; y++ {
|
||||
t.window.Move(y, -2)
|
||||
t.window.Print(" ")
|
||||
}
|
||||
}
|
||||
|
||||
innerBorderFn(marginInt[0], marginInt[3]+pwidth, width-pwidth, height)
|
||||
createPreviewWindow(marginInt[0], marginInt[3], pwidth, height)
|
||||
|
||||
Reference in New Issue
Block a user