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.
This commit is contained in:
Chris Pick 2015-09-03 14:20:08 -04:00
parent a815e6ca14
commit ab6d9ad521
2 changed files with 12 additions and 0 deletions

View file

@ -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

View file

@ -1,4 +1,5 @@
success
success
replace success
t-binding success
success