summaryrefslogtreecommitdiffstats
path: root/src/getchar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/getchar.c')
-rw-r--r--src/getchar.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/getchar.c b/src/getchar.c
index ff71952316..c0dfc2b0b8 100644
--- a/src/getchar.c
+++ b/src/getchar.c
@@ -3836,8 +3836,9 @@ do_cmdkey_command(int key UNUSED, int flags)
#if defined(FEAT_EVAL) || defined(PROTO)
void
-reset_last_used_map(void)
+reset_last_used_map(mapblock_T *mp)
{
- last_used_map = NULL;
+ if (last_used_map == mp)
+ last_used_map = NULL;
}
#endif