diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-09-25 11:38:00 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-09-25 11:53:12 +0200 |
| commit | 98bca99b2aeffb55b8aee765a7a6de13bdac4506 (patch) | |
| tree | baac1176c389563b82135e08a9d90f0391cb7cc4 /main.c | |
| parent | c3bbd835fca0ba184f191b270d9aebfc2466be82 (diff) | |
| download | vis-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |
