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.
This commit is contained in:
Sean Dewar
2025-05-08 18:50:47 +01:00
parent 302e59f734
commit e56292071a
3 changed files with 28 additions and 0 deletions

View File

@@ -1773,6 +1773,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);
}