Mercurial > vim
changeset 11816:f6575adc6ee8 v8.0.0788
patch 8.0.0788: MS-Windows: cannot build with terminal feature
commit https://github.com/vim/vim/commit/f86eea9f01460e3b375ee768d4b863beb690006f
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jul 28 13:51:30 2017 +0200
patch 8.0.0788: MS-Windows: cannot build with terminal feature
Problem: MS-Windows: cannot build with terminal feature.
Solution: Move set_ref_in_term(). (Ozaki Kiichi)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 28 Jul 2017 14:00:07 +0200 |
parents | e684f73cca04 |
children | e802ab098e62 |
files | src/terminal.c src/version.c |
diffstat | 2 files changed, 22 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
--- a/src/terminal.c +++ b/src/terminal.c @@ -1094,6 +1094,26 @@ term_get_status_text(term_T *term) return term->tl_status_text; } +/* + * Mark references in jobs of terminals. + */ + int +set_ref_in_term(int copyID) +{ + int abort = FALSE; + term_T *term; + typval_T tv; + + for (term = first_term; term != NULL; term = term->tl_next) + if (term->tl_job != NULL) + { + tv.v_type = VAR_JOB; + tv.vval.v_job = term->tl_job; + abort = abort || set_ref_in_item(&tv, copyID, NULL, NULL); + } + return abort; +} + # ifdef WIN3264 #define WINPTY_SPAWN_FLAG_AUTO_SHUTDOWN 1ul @@ -1399,26 +1419,6 @@ term_report_winsize(term_T *term, int ro } } -/* - * Mark references in jobs of terminals. - */ - int -set_ref_in_term(int copyID) -{ - int abort = FALSE; - term_T *term; - typval_T tv; - - for (term = first_term; term != NULL; term = term->tl_next) - if (term->tl_job != NULL) - { - tv.v_type = VAR_JOB; - tv.vval.v_job = term->tl_job; - abort = abort || set_ref_in_item(&tv, copyID, NULL, NULL); - } - return abort; -} - # endif #endif /* FEAT_TERMINAL */