From 45d5da9094e04345eeed9a4b606403cebf12da27 Mon Sep 17 00:00:00 2001 From: Sameer Rahmani Date: Wed, 23 Nov 2022 22:39:46 +0000 Subject: [PATCH] Add a todo to user tcell/v2/views in the future --- filter.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/filter.go b/filter.go index 7f0e130..8d856ae 100644 --- a/filter.go +++ b/filter.go @@ -22,6 +22,8 @@ import ( "github.com/gdamore/tcell/v2" ) +// TODO: Use tcell/v2/views instead of a manual scrolling computation + // TODO: Right now, filter does not handle terminal resize properly, //fix it! @@ -127,7 +129,8 @@ func main() { // Event loop for !done { - s.Clear() + //s.Clear() + Render(s, input, lowerBound, upperBound, currentLine) // Update screen