summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2023-01-04 10:09:39 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2023-01-04 10:09:39 +0900
commit5798145581c6b2de18f14c9e1a2e11ec3251c434 (patch)
tree6bcf2f0ccb9d3681d8a106e57b2e712621759520
parent51ef0b7f661e8df853f8c3e93fc9d52ba12c7f27 (diff)
Fix preview border on tcell renderer
-rw-r--r--src/tui/tcell.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tui/tcell.go b/src/tui/tcell.go
index befdb58f..82d72995 100644
--- a/src/tui/tcell.go
+++ b/src/tui/tcell.go
@@ -523,7 +523,7 @@ func fill(x, y, w, h int, n ColorPair, r rune) {
}
func (w *TcellWindow) Erase() {
- fill(w.left-1, w.top, w.width+1, w.height, w.normal, ' ')
+ fill(w.left-1, w.top, w.width+1, w.height-1, w.normal, ' ')
}
func (w *TcellWindow) Enclose(y int, x int) bool {