diff options
Diffstat (limited to 'src/terminal.c')
-rw-r--r-- | src/terminal.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/terminal.c b/src/terminal.c index a4120b39c..893cd0f1b 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -691,8 +691,11 @@ move_terminal_to_buffer(term_T *term) VTermPos pos; VTermScreenCell cell; VTermScreenCell *p; - VTermScreen *screen = vterm_obtain_screen(term->tl_vterm); + VTermScreen *screen; + if (term->tl_vterm == NULL) + return; + screen = vterm_obtain_screen(term->tl_vterm); for (pos.row = 0; pos.row < term->tl_rows; ++pos.row) { len = 0; |