m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-18 00:03:39 -05:00

Fix ghost text with inline info

Fix #4312
This commit is contained in:
Junegunn Choi
2025-03-15 18:42:08 +09:00
parent 4298c0b1eb
commit 87f7f436e8
2 changed files with 21 additions and 2 deletions

View File

@@ -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