mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-01 04:41:14 -03:00
@@ -27,6 +27,16 @@ expect_prompt -re {\r\nsuccess\r\n} {
|
||||
puts stderr "Couldn't find expected output 'success'"
|
||||
}
|
||||
|
||||
# Test lowercase-r replace
|
||||
send_line "\033ddiecho TEXT\033hhrAi"
|
||||
expect_prompt -re {\r\nTAXT\r\n} {
|
||||
puts "replace success"
|
||||
} -nounmatched -re {\r\nfail} {
|
||||
puts stderr "replace fail"
|
||||
} unmatched {
|
||||
puts stderr "Couldn't find expected output 'TAXT'"
|
||||
}
|
||||
|
||||
# still in insert mode, switch back to regular key bindings
|
||||
send_line "set -g fish_key_bindings fish_default_key_bindings"
|
||||
expect_prompt
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
success
|
||||
success
|
||||
replace success
|
||||
success
|
||||
|
||||
Reference in New Issue
Block a user