mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.1.0522: :terminal does not show trailing empty lines
Problem: :terminal does not show trailing empty lines. Solution: Add empty lines. (Hirohito Higashi, closes #3605)
This commit is contained in:
@@ -1592,6 +1592,15 @@ update_snapshot(term_T *term)
|
||||
}
|
||||
}
|
||||
|
||||
// Add trailing empty lines.
|
||||
for (pos.row = term->tl_scrollback.ga_len;
|
||||
pos.row < term->tl_scrollback_scrolled + term->tl_cursor_pos.row;
|
||||
++pos.row)
|
||||
{
|
||||
if (add_empty_scrollback(term, &fill_attr, 0) == OK)
|
||||
add_scrollback_line_to_buffer(term, (char_u *)"", 0);
|
||||
}
|
||||
|
||||
term->tl_dirty_snapshot = FALSE;
|
||||
#ifdef FEAT_TIMERS
|
||||
term->tl_timer_set = FALSE;
|
||||
|
Reference in New Issue
Block a user