mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -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:
@@ -2952,7 +2952,10 @@ handle_postponed_scrollback(term_T *term)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
ch_log(NULL, "Moving postponed scrollback to scrollback");
|
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
|
// First remove the lines that were appended before, the pushed lines go
|
||||||
// above it.
|
// above it.
|
||||||
cleanup_scrollback(term);
|
cleanup_scrollback(term);
|
||||||
|
@@ -779,6 +779,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1018,
|
||||||
/**/
|
/**/
|
||||||
1017,
|
1017,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user