summaryrefslogtreecommitdiffstats
path: root/src/normal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/normal.c')
-rw-r--r--src/normal.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/normal.c b/src/normal.c
index fb2bced04a..8351685d1d 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -1466,6 +1466,13 @@ prep_redo_num2(
int cmd5)
{
ResetRedobuff();
+
+#ifdef FEAT_EVAL
+ // Put info about a mapping in the redo buffer, so that "." will use the
+ // same script context.
+ may_add_last_used_map_to_redobuff();
+#endif
+
if (regname != 0) // yank from specified buffer
{
AppendCharToRedobuff('"');