diff options
Diffstat (limited to 'src/terminal.c')
-rw-r--r-- | src/terminal.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/terminal.c b/src/terminal.c index 901bb9bed1..7029f49abc 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -2145,7 +2145,11 @@ f_term_scrape(typval_T *argvars, typval_T *rettv) pos.row = get_row_number(&argvars[1], term); if (term->tl_vterm != NULL) + { screen = vterm_obtain_screen(term->tl_vterm); + p = NULL; + line = NULL; + } else { linenr_T lnum = pos.row + term->tl_scrollback_scrolled; |