aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r--src/nvim/option.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index 7f6623017e..495a6819f9 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -5461,6 +5461,10 @@ void set_context_in_set_cmd(expand_T *xp, char *arg, int opt_flags)
xp->xp_context = EXPAND_FILETYPE;
return;
}
+ if (options[opt_idx].var == &p_keymap) {
+ xp->xp_context = EXPAND_KEYMAP;
+ return;
+ }
// Now pick. If the option has a custom expander, use that. Otherwise, just
// fill with the existing option value.