0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.1.1018: window cleared when entering Terminal-Normal twice

Problem:    Window cleared when entering Terminal-Normal twice. (Epheien)
Solution:   Don't cleanup scrollback when there is no postponed scrollback.
            (Christian Brabandt, closes #4126)
This commit is contained in:
Bram Moolenaar
2019-03-19 20:50:43 +01:00
parent 493fbe4abe
commit 8376c3d321
2 changed files with 6 additions and 1 deletions

View File

@@ -2952,7 +2952,10 @@ handle_postponed_scrollback(term_T *term)
{
int i;
if (term->tl_scrollback_postponed.ga_len == 0)
return;
ch_log(NULL, "Moving postponed scrollback to scrollback");
// First remove the lines that were appended before, the pushed lines go
// above it.
cleanup_scrollback(term);

View File

@@ -779,6 +779,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1018,
/**/
1017,
/**/