aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/bind.expect
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bind.expect')
-rw-r--r--tests/bind.expect16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/bind.expect b/tests/bind.expect
index 6b5278ee..5ad4fc9c 100644
--- a/tests/bind.expect
+++ b/tests/bind.expect
@@ -97,6 +97,7 @@ expect_prompt -re {\r\nTAXT\r\n} {
# Verify that changing the escape timeout has an effect.
send "set -g fish_escape_delay_ms 100\r"
+
expect_prompt
send "echo fail: lengthened escape timeout"
send "\033"
@@ -122,6 +123,21 @@ expect_prompt -re {\r\nfail: no normal modediinserted\r\n} {
puts stderr "vi replace line, 100ms timeout: short delay"
}
+# 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 "\033"
+sleep 0.510
+send "ddiecho TEXT\033"
+sleep 0.510
+send "hhtTrN\r"
+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'"
+}
+
# Switch back to regular (emacs mode) key bindings.
# The custom escape timeout of 100ms set earlier should still be in effect.
send "set -g fish_key_bindings fish_default_key_bindings\r"