summaryrefslogtreecommitdiff
path: root/src/normal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/normal.c')
-rw-r--r--src/normal.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/normal.c b/src/normal.c
index 79e0b68aa..31ec36306 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -1482,8 +1482,7 @@ do_pending_operator(cmdarg_T *cap, int old_col, int gui_yank)
{
AppendToRedobuffLit(repeat_cmdline, -1);
AppendToRedobuff(NL_STR);
- vim_free(repeat_cmdline);
- repeat_cmdline = NULL;
+ VIM_CLEAR(repeat_cmdline);
}
}
}