summaryrefslogtreecommitdiff
path: root/src/tui
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-11-03 15:06:11 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-11-03 15:07:17 +0900
commitbacc8609ee22fb9bbe34dc812ecb6075f4e58007 (patch)
tree5bb2b520bc3a36640cf52190297b99abe1b02bde /src/tui
parent99163f5afa6ef4aea3c99103406ffe3aa6fa922c (diff)
downloadfzf-bacc8609ee22fb9bbe34dc812ecb6075f4e58007.tar.gz
Fix characters from previous preview not being cleared
Fix #4075
Diffstat (limited to 'src/tui')
-rw-r--r--src/tui/light.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tui/light.go b/src/tui/light.go
index 80488bf7..054c23a3 100644
--- a/src/tui/light.go
+++ b/src/tui/light.go
@@ -1097,7 +1097,7 @@ func (w *LightWindow) fill(str string, resetCode string) FillReturn {
}
}
}
- if w.posx+1 >= w.Width() {
+ if w.posx >= w.Width() {
if w.posy+1 >= w.height {
return FillSuspend
}