Implement lowercase-r replace in fish_vi_mode

Fixes #1595
This commit is contained in:
ridiculousfish
2015-07-20 00:18:56 -07:00
parent 68bbe13d23
commit 2109af0987
4 changed files with 20 additions and 0 deletions

View File

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

View File

@@ -1,3 +1,4 @@
success
success
replace success
success