summaryrefslogtreecommitdiffstats
path: root/src/terminal.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2023-11-10 12:55:18 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2023-11-10 13:16:11 +0900
commit38e3694d1ca5f138f26fbbffb7c0122b58eee8dc (patch)
tree70adaeba1deef894b5c3fc73470c23c239d132ec /src/terminal.go
parent108493524110c8f996231eb5e51b93da7a9b57ca (diff)
Revert "Sixel and Kitty image support on Windows binary (#2544)"
Diffstat (limited to 'src/terminal.go')
-rw-r--r--src/terminal.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/terminal.go b/src/terminal.go
index f48e5f25..1802e446 100644
--- a/src/terminal.go
+++ b/src/terminal.go
@@ -1962,8 +1962,6 @@ 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 {
@@ -2094,10 +2092,6 @@ Loop:
for i := y + 1; i < height; i++ {
t.pwindow.MoveAndClear(i, 0)
}
- // Required for tcell to clear the previous text
- if !t.previewed.image {
- t.tui.Sync(false)
- }
}
image = image || isImage
if idx == 0 {
@@ -2105,7 +2099,7 @@ Loop:
} else {
t.pwindow.Move(y, x)
}
- t.tui.PassThrough(t.pwindow.Top()+y, t.pwindow.Left()+x, passThrough)
+ t.tui.PassThrough(passThrough)
if requiredLines > 0 {
if y+requiredLines == height {