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

Fix #172 - Print empty line when fzf with expect finished by -1 or -0

This commit is contained in:
Junegunn Choi
2015-03-31 20:52:16 +09:00
parent 39d7177bd3
commit 84a7499ae3
2 changed files with 8 additions and 0 deletions

View File

@@ -452,6 +452,11 @@ class TestGoFZF < TestBase
tmux.send_keys :Escape, :z
assert_equal ['55', 'alt-z', '55'], readonce.split($/)
end
def test_expect_print_query_select_1
tmux.send_keys "seq 1 100 | #{fzf '-q55 -1 --expect=alt-z --print-query'}", :Enter
assert_equal ['55', '', '55'], readonce.split($/)
end
end
module TestShell