From 87f7f436e8e6de98336eb26d695bec93cc5b6b07 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sat, 15 Mar 2025 18:42:08 +0900 Subject: Fix ghost text with inline info Fix #4312 --- test/test_core.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'test/test_core.rb') 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 -- cgit v1.2.3