summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2025-02-01 17:22:44 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2025-02-01 17:23:22 +0900
commit178b49832e09a78a9f8f5ce1647d5f36b667a097 (patch)
tree60ac7842169eda5ea7db3141e78ae236a27f2231 /src
parent18cbb4a84d187adc121e5937b1ec027e00c66f0a (diff)
downloadfzf-178b49832e09a78a9f8f5ce1647d5f36b667a097.tar.gz
Fix {show,hide,toggle}-input and add test cases
Diffstat (limited to 'src')
-rw-r--r--src/terminal.go3
1 files changed, 2 insertions, 1 deletions
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()
}