From ab6d9ad521dc6ad96c2a0ea1a2c55702eb5d15c9 Mon Sep 17 00:00:00 2001 From: Chris Pick Date: Thu, 3 Sep 2015 14:20:08 -0400 Subject: Test vi-mode 't' binding Test 't' binding that contains non-zero arity function (forward-jump) followed by another function (and). This demonstrates the problem in #2357. --- tests/bind.expect | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests/bind.expect') diff --git a/tests/bind.expect b/tests/bind.expect index 9df5b37c..eedc9079 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 "set -g fish_key_bindings fish_default_key_bindings" expect_prompt -- cgit v1.2.3