diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2025-03-15 18:42:08 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2025-03-15 18:42:08 +0900 |
| commit | 87f7f436e8e6de98336eb26d695bec93cc5b6b07 (patch) | |
| tree | 92e7093fc4672dff06cf9a884a13976a0c7e30b0 /test | |
| parent | 4298c0b1eb31b7563eb608e3fbf4069488ada08d (diff) | |
| download | fzf-87f7f436e8e6de98336eb26d695bec93cc5b6b07.tar.gz | |
Fix ghost text with inline info
Fix #4312
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_core.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/test_core.rb b/test/test_core.rb index 882d68c5..32fbd2cf 100644 --- a/test/test_core.rb +++ b/test/test_core.rb @@ -1831,4 +1831,19 @@ class TestCore < TestInteractive assert_includes lines, 'X Type in query ...' end end + + def test_ghost_inline + tmux.send_keys %(seq 100 | #{FZF} --info 'inline: Y' --no-separator --prompt 'X ' --ghost 'Type in query ...'), :Enter + tmux.until do |lines| + assert_includes lines, 'X Type in query ... Y100/100' + end + tmux.send_keys '100' + tmux.until do |lines| + assert_includes lines, 'X 100 Y1/100' + end + tmux.send_keys 'C-u' + tmux.until do |lines| + assert_includes lines, 'X Type in query ... Y100/100' + end + end end |
