diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2016-02-02 17:00:27 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2016-02-02 17:00:27 -0800 |
commit | b4a44deb7b7e5df9ec929f312600dd9e46acd047 (patch) | |
tree | 94efaa8efdd76daafe90f34db999cabcaee3d69d /tests | |
parent | 60a477a30365c90a0f4de34527914b14de31a953 (diff) | |
parent | 8cc154bc48f730db2303a6bfa91532775fc7ea5b (diff) |
Merge branch 'fix-jump' of git://github.com/cpick/fish-shell into cpick-fix-jump
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 |