aboutsummaryrefslogtreecommitdiff
path: root/vis-core.h
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 /vis-core.h
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 'vis-core.h')
-rw-r--r--vis-core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/vis-core.h b/vis-core.h
index 16fea28..a998586 100644
--- a/vis-core.h
+++ b/vis-core.h
@@ -161,6 +161,7 @@ struct Vis {
Map *usercmds; /* user registered ":"-commands */
Map *options; /* ":set"-options */
Map *keymap; /* key translation before any bindings are matched */
+ bool keymap_disabled; /* ignore key map for next key press, gets automatically re-enabled */
Buffer input_queue; /* holds pending input keys */
Buffer *keys; /* currently active keys buffer (either the input_queue or a macro) */
bool errorhandler; /* whether we are currently in an error handler, used to avoid recursion */