From 2109af0987ce6daab95daa053199ab4f7cafb970 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Mon, 20 Jul 2015 00:18:56 -0700 Subject: Implement lowercase-r replace in fish_vi_mode Fixes #1595 --- tests/bind.expect | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/bind.expect') diff --git a/tests/bind.expect b/tests/bind.expect index 91585c96..9df5b37c 100644 --- a/tests/bind.expect +++ b/tests/bind.expect @@ -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 -- cgit v1.2.3