forked from aniani/vim
patch 8.0.1496: clearing a pointer takes two lines
Problem: Clearing a pointer takes two lines. Solution: Add VIM_CLEAR() and replace vim_clear(). (Hirohito Higashi, closes #2629)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user