diff src/quickfix.c @ 34365:8303936dbd64 v9.1.0113

patch 9.1.0113: duplicate code when cleaning undo stack Commit: https://github.com/vim/vim/commit/9071ed8107244e0c56a16b77d1c28e975cb21dd2 Author: Christian Brabandt <cb@256bit.org> Date: Thu Feb 15 20:17:37 2024 +0100 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>
author Christian Brabandt <cb@256bit.org>
date Thu, 15 Feb 2024 20:30:05 +0100
parents 3b654f4462c5
children dd8f5311cee5
line wrap: on
line diff
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -4839,8 +4839,7 @@ qf_fill_buffer(qf_list_T *qfl, buf_T *bu
 	    (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