diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bind.expect | 11 | ||||
-rw-r--r-- | tests/bind.expect.out | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/bind.expect b/tests/bind.expect index 25270955..42cd3409 100644 --- a/tests/bind.expect +++ b/tests/bind.expect @@ -37,6 +37,17 @@ expect_prompt -re {\r\nTAXT\r\n} { puts stderr "Couldn't find expected output 'TAXT'" } +# Test 't' binding that contains non-zero arity function (forward-jump) followed +# by another function (and) https://github.com/fish-shell/fish-shell/issues/2357 +send_line "\033ddiecho TEXT\033hhtTrN" +expect_prompt -re {\r\nTENT\r\n} { + puts "t-binding success" +} -nounmatched -re {\r\nfail} { + puts stderr "t-binding fail" +} unmatched { + puts stderr "Couldn't find expected output 'TENT'" +} + # still in insert mode, switch back to regular key bindings send_line -h "set -g fish_key_bindings fish_default_key_bindings" expect_prompt diff --git a/tests/bind.expect.out b/tests/bind.expect.out index 7f883abd..5777546d 100644 --- a/tests/bind.expect.out +++ b/tests/bind.expect.out @@ -1,4 +1,5 @@ success success replace success +t-binding success success |