summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2025-03-25 21:06:04 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2025-03-25 21:08:06 +0900
commitf43e82f17fb107d2093e6226833eb68e532c1810 (patch)
tree599d311b2a0107e1390c99ab75be277dc9f77dbd /src
parent62238620a50566a1941dbb250f7b9ffc3174feae (diff)
downloadfzf-f43e82f17fb107d2093e6226833eb68e532c1810.tar.gz
Do not ignore current query when input is hidden
* The initial query given by --query should be respected * The current query should still be respected after `hide-input` (or `toggle-input) Fix #4327
Diffstat (limited to 'src')
-rw-r--r--src/terminal.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/terminal.go b/src/terminal.go
index 0182d196..03af52a0 100644
--- a/src/terminal.go
+++ b/src/terminal.go
@@ -1418,10 +1418,7 @@ func (t *Terminal) Input() (bool, []rune) {
t.mutex.Lock()
defer t.mutex.Unlock()
paused := t.paused
- var src []rune
- if !t.inputless {
- src = t.input
- }
+ src := t.input
if t.inputOverride != nil {
paused = false
src = *t.inputOverride