Mercurial > vim
diff src/ex_cmds2.c @ 13878:a590029f16a0 v8.0.1810
patch 8.0.1810: buffer of a terminal only updated in Terminal-Normal mode
commit https://github.com/vim/vim/commit/56bc8e299cdae1b4606897749ef54a0161381a4a
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu May 10 18:05:56 2018 +0200
patch 8.0.1810: buffer of a terminal only updated in Terminal-Normal mode
Problem: Buffer of a terminal only updated in Terminal-Normal mode.
Solution: Copy the terminal window content to the buffer when in
Terminal-Job mode.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 10 May 2018 18:15:06 +0200 |
parents | 378f9f8e6d8f |
children | eadecbe4e390 |
line wrap: on
line diff
--- a/src/ex_cmds2.c +++ b/src/ex_cmds2.c @@ -1206,7 +1206,7 @@ profile_zero(proftime_T *tm) static timer_T *first_timer = NULL; static long last_timer_id = 0; - static long + long proftime_time_left(proftime_T *due, proftime_T *now) { # ifdef WIN3264 @@ -1424,6 +1424,10 @@ check_due_timer(void) next_due = this_due; } #endif +#ifdef FEAT_TERMINAL + /* Some terminal windows may need their buffer updated. */ + next_due = term_check_timers(next_due, &now); +#endif return current_id != last_timer_id ? 1 : next_due; }