forked from aniani/vim
patch 9.1.0113: duplicate code when cleaning undo stack
Problem: duplicate code when cleaning undo stack Solution: refactor undo cleanup into a single public function related: #13928 Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -4839,8 +4839,7 @@ qf_fill_buffer(qf_list_T *qfl, buf_T *buf, qfline_T *old_last, int qf_winid)
|
||||
(void)ml_delete((linenr_T)1);
|
||||
|
||||
// Remove all undo information
|
||||
u_blockfree(curbuf);
|
||||
u_clearall(curbuf);
|
||||
u_clearallandblockfree(curbuf);
|
||||
}
|
||||
|
||||
// Check if there is anything to display
|
||||
|
Reference in New Issue
Block a user