diff src/misc2.c @ 11163:f4d1fad4ac00 v8.0.0468

patch 8.0.0468: after aborting an Ex command g< does not work commit https://github.com/vim/vim/commit/f2405ed2321da4a879fe0b0703af780fc0432c63 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 16 19:58:25 2017 +0100 patch 8.0.0468: after aborting an Ex command g< does not work Problem: After aborting an Ex command g< does not work. (Marcin Szamotulski) Solution: Postpone clearing scrollback messages to until the command line has been entered. Also fix that the screen isn't redrawn if after g< the command line is cancelled.
author Christian Brabandt <cb@256bit.org>
date Thu, 16 Mar 2017 20:00:05 +0100
parents 6ce90f33373f
children 290f5f6a2bac
line wrap: on
line diff
--- a/src/misc2.c
+++ b/src/misc2.c
@@ -970,7 +970,7 @@ lalloc(long_u size, int message)
 	    break;
 	releasing = TRUE;
 
-	clear_sb_text();	      /* free any scrollback text */
+	clear_sb_text(TRUE);	      /* free any scrollback text */
 	try_again = mf_release_all(); /* release as many blocks as possible */
 
 	releasing = FALSE;
@@ -1148,7 +1148,7 @@ free_all_mem(void)
 # ifdef FEAT_DIFF
     diff_clear(curtab);
 # endif
-    clear_sb_text();	      /* free any scrollback text */
+    clear_sb_text(TRUE);	      /* free any scrollback text */
 
     /* Free some global vars. */
     vim_free(username);