diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2025-03-25 21:06:04 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2025-03-25 21:08:06 +0900 |
| commit | f43e82f17fb107d2093e6226833eb68e532c1810 (patch) | |
| tree | 599d311b2a0107e1390c99ab75be277dc9f77dbd /src | |
| parent | 62238620a50566a1941dbb250f7b9ffc3174feae (diff) | |
| download | fzf-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.go | 5 |
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 |
