From 178b49832e09a78a9f8f5ce1647d5f36b667a097 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sat, 1 Feb 2025 17:22:44 +0900 Subject: Fix {show,hide,toggle}-input and add test cases --- src/terminal.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/terminal.go') diff --git a/src/terminal.go b/src/terminal.go index 9dcdd2db..175d82c4 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -2533,7 +2533,7 @@ func (t *Terminal) printInfoImpl() { func (t *Terminal) resizeIfNeeded() bool { // Check if input border is used and input has changed - if t.inputBorderShape.Visible() && t.inputWindow == nil && !t.inputless { + if t.inputBorderShape.Visible() && t.inputWindow == nil && !t.inputless || t.inputWindow != nil && t.inputless { t.printAll() return true } @@ -5948,6 +5948,7 @@ func (t *Terminal) Loop() error { // Always just discard the change t.input = previousInput t.cx = len(t.input) + beof = false } else { t.truncateQuery() } -- cgit v1.2.3