From 4c61c551aa4a6d2e48cec1232b359f8a7fe5e4fa Mon Sep 17 00:00:00 2001 From: sammyette Date: Mon, 13 May 2024 22:10:28 -0400 Subject: [PATCH] fix: menu refreshes now there's no flicker *and* its not bugged with leaving the text on exit --- readline/tabfind.go | 2 +- readline/update.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/readline/tabfind.go b/readline/tabfind.go index 830dad3..3e46312 100644 --- a/readline/tabfind.go +++ b/readline/tabfind.go @@ -29,7 +29,7 @@ func (rl *Instance) updateTabFind(r []rune) { rl.search = string(rl.tfLine) // We update and print - rl.clearHelpers() + //rl.clearHelpers() rl.getTabCompletion() rl.renderHelpers() } diff --git a/readline/update.go b/readline/update.go index 66b3ba0..0538aad 100644 --- a/readline/update.go +++ b/readline/update.go @@ -121,7 +121,7 @@ func (rl *Instance) clearHelpers() { moveCursorForwards(rl.fullX) // Clear everything below - //print(seqClearScreenBelow) + print(seqClearScreenBelow) // Go back to current cursor position moveCursorBackwards(GetTermWidth())