From 98bca99b2aeffb55b8aee765a7a6de13bdac4506 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sun, 25 Sep 2016 11:38:00 +0200 Subject: vis: disable language map for replacement character of `r` command The character following the `r` command in normal mode should be treated as regular input given in insert/replace mode, that is no tranformation should be applied. Temporarily disable the language map for this reason. Close #382 --- main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index b0b932d..963b256 100644 --- a/main.c +++ b/main.c @@ -1630,8 +1630,10 @@ static const char *selections_trim(Vis *vis, const char *keys, const Arg *arg) { } static const char *replace(Vis *vis, const char *keys, const Arg *arg) { - if (!keys[0]) + if (!keys[0]) { + vis_keymap_disable(vis); return NULL; + } const char *next = vis_keys_next(vis, keys); if (!next) return NULL; -- cgit v1.2.3