vim-patch:8.0.0468: g< after aborting an Ex command (#7941)

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.
f2405ed232
This commit is contained in:
KunMing Xie
2018-06-21 17:36:26 +08:00
committed by Justin M. Keyes
parent b92d6f490d
commit 7ae7da8fb9
3 changed files with 63 additions and 31 deletions

View File

@@ -66,7 +66,7 @@ void try_to_free_memory(void)
trying_to_free = true;
// free any scrollback text
clear_sb_text();
clear_sb_text(true);
// Try to save all buffers and release as many blocks as possible
mf_release_all();
@@ -633,7 +633,7 @@ void free_all_mem(void)
free_signs();
set_expr_line(NULL);
diff_clear(curtab);
clear_sb_text(); /* free any scrollback text */
clear_sb_text(true); // free any scrollback text
/* Free some global vars. */
xfree(last_cmdline);