diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2025-02-02 16:27:39 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2025-02-02 16:28:32 +0900 |
| commit | 65d74387e7409c82340414e6f4faa0e6244583c8 (patch) | |
| tree | b3bf2da8b8e6bb0e4ee2a354b7dcd80ac63b4296 /test | |
| parent | 7d0ea599c4caeb12f7b2e98fb82d3ec50d184c88 (diff) | |
| download | fzf-65d74387e7409c82340414e6f4faa0e6244583c8.tar.gz | |
Stop processing more actions after a terminal action (accept, abort, etc.)
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_filter.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_filter.rb b/test/test_filter.rb index dc66ec00..ceb2c8cd 100644 --- a/test/test_filter.rb +++ b/test/test_filter.rb @@ -299,4 +299,9 @@ class TestFilter < TestBase assert_equal expected, result end end + + def test_abort_action_chain + assert_equal '1', `seq 100 | #{FZF} --bind 'load:accept+up+up'`.chomp + assert_equal '', `seq 100 | #{FZF} --bind 'load:abort+become(echo {})'`.chomp + end end |
