fix(terminal): check size when switching buffers

Problem: terminal not always resized when switching to its buffer.
Solution: add missing calls to terminal_check_size.

Adjust screen test for v0.11.
(cherry picked from commit e56292071a)
This commit is contained in:
Sean Dewar
2025-05-08 18:50:47 +01:00
committed by github-actions[bot]
parent fd8e0ae62d
commit 8daffd0cbb
3 changed files with 28 additions and 0 deletions

View File

@@ -1772,6 +1772,10 @@ void enter_buffer(buf_T *buf)
}
curbuf->b_last_used = time(NULL);
if (curbuf->terminal != NULL) {
terminal_check_size(curbuf->terminal);
}
redraw_later(curwin, UPD_NOT_VALID);
}