mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-21 23:43:50 -07:00
Sixel and Kitty image support on Windows binary (#2544)
This commit is contained in:
@@ -1938,6 +1938,8 @@ func (t *Terminal) renderPreviewArea(unchanged bool) {
|
||||
if t.previewed.wipe && t.previewed.version != t.previewer.version {
|
||||
t.previewed.wipe = false
|
||||
t.pwindow.Erase()
|
||||
// Required for tcell to clear the previous image
|
||||
t.tui.Sync(true)
|
||||
} else if unchanged {
|
||||
t.pwindow.MoveAndClear(0, 0) // Clear scroll offset display
|
||||
} else {
|
||||
@@ -2061,6 +2063,10 @@ Loop:
|
||||
for i := y + 1; i < height; i++ {
|
||||
t.pwindow.MoveAndClear(i, 0)
|
||||
}
|
||||
// Required for tcell to clear the previous text
|
||||
if !t.previewed.sixel {
|
||||
t.tui.Sync(false)
|
||||
}
|
||||
}
|
||||
sixel = sixel || isSixel
|
||||
if idx == 0 {
|
||||
@@ -2068,7 +2074,7 @@ Loop:
|
||||
} else {
|
||||
t.pwindow.Move(y, x)
|
||||
}
|
||||
t.tui.PassThrough(passThrough)
|
||||
t.tui.PassThrough(t.pwindow.Top()+y, t.pwindow.Left()+x, passThrough)
|
||||
|
||||
if requiredLines > 0 {
|
||||
if y+requiredLines == height {
|
||||
|
Reference in New Issue
Block a user