summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2025-02-26 00:24:41 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2025-02-26 00:25:23 +0900
commit710ebdf9c14e0c88b0cfc843ce08edcdd4554571 (patch)
treedac36d7934813166ac18b61146daf2bd44a94490 /test
parentbb64d84ce407221bd0c4e219b182cfbafac0bed7 (diff)
downloadfzf-710ebdf9c14e0c88b0cfc843ce08edcdd4554571.tar.gz
Make --accept-nth compatible with --select-1
Fix #4287
Diffstat (limited to 'test')
-rw-r--r--test/test_core.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_core.rb b/test/test_core.rb
index a68a8e95..59cdfac4 100644
--- a/test/test_core.rb
+++ b/test/test_core.rb
@@ -238,6 +238,11 @@ class TestCore < TestInteractive
assert_equal %w[5555 55], fzf_output_lines
end
+ def test_select_1_accept_nth
+ tmux.send_keys "seq 1 100 | #{fzf(:with_nth, '..,..', :print_query, :q, 5555, :'1', :accept_nth, '"{1} // {1}"')}", :Enter
+ assert_equal ['5555', '55 // 55'], fzf_output_lines
+ end
+
def test_exit_0
tmux.send_keys "seq 1 100 | #{fzf(:with_nth, '..,..', :print_query, :q, 555_555, :'0')}", :Enter
assert_equal %w[555555], fzf_output_lines