diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-09-26 21:25:52 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-09-26 21:25:52 +0200 |
| commit | 86aeecf017dfe258d50d3f72f25c943fed540b12 (patch) | |
| tree | d71446a0eae82a966934fda47fcec083b13a5b3f | |
| parent | 98bca99b2aeffb55b8aee765a7a6de13bdac4506 (diff) | |
| download | vis-86aeecf017dfe258d50d3f72f25c943fed540b12.tar.gz vis-86aeecf017dfe258d50d3f72f25c943fed540b12.tar.xz | |
vis: also apply language map to operator pending mode
| -rw-r--r-- | vis.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -868,7 +868,9 @@ static const char *getkey(Vis *vis) { if (!key) return NULL; vis_info_hide(vis); - bool use_keymap = !vis->mode->input && !vis->keymap_disabled; + bool use_keymap = vis->mode->id != VIS_MODE_INSERT && + vis->mode->id != VIS_MODE_REPLACE && + !vis->keymap_disabled; vis->keymap_disabled = false; if (use_keymap) { const char *mapped = map_get(vis->keymap, key); |
