aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/memory.c
diff options
context:
space:
mode:
authorKunMing Xie <qqzz014@gmail.com>2018-06-21 17:36:26 +0800
committerJustin M. Keyes <justinkz@gmail.com>2018-06-21 11:36:26 +0200
commit7ae7da8fb9ab2e23ffc19000798ae27a2dee4e87 (patch)
treefe8c991ec9bbb4f3c72cd3a3b53d08e3540d5354 /src/nvim/memory.c
parentb92d6f490d93f788f018d7c8417d68d2d3de1a95 (diff)
downloadrneovim-7ae7da8fb9ab2e23ffc19000798ae27a2dee4e87.tar.gz
rneovim-7ae7da8fb9ab2e23ffc19000798ae27a2dee4e87.tar.bz2
rneovim-7ae7da8fb9ab2e23ffc19000798ae27a2dee4e87.zip
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. https://github.com/vim/vim/commit/f2405ed2321da4a879fe0b0703af780fc0432c63
Diffstat (limited to 'src/nvim/memory.c')
-rw-r--r--src/nvim/memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/memory.c b/src/nvim/memory.c
index bfc2f208dd..b2aef13946 100644
--- a/src/nvim/memory.c
+++ b/src/nvim/memory.c
@@ -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);