aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-09-25 11:38:00 +0200
committerMarc André Tanner <mat@brain-dump.org>2016-09-25 11:53:12 +0200
commit98bca99b2aeffb55b8aee765a7a6de13bdac4506 (patch)
treebaac1176c389563b82135e08a9d90f0391cb7cc4 /main.c
parentc3bbd835fca0ba184f191b270d9aebfc2466be82 (diff)
downloadvis-98bca99b2aeffb55b8aee765a7a6de13bdac4506.tar.gz
vis-98bca99b2aeffb55b8aee765a7a6de13bdac4506.tar.xz
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
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 3 insertions, 1 deletions
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;