mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 05:28:49 +00:00
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:
parent
a815e6ca14
commit
ab6d9ad521
2 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
success
|
||||
success
|
||||
replace success
|
||||
t-binding success
|
||||
success
|
||||
|
|
Loading…
Reference in a new issue