Mercurial > vim
comparison src/terminal.c @ 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 | d3d0db111d17 |
children | 0f9780ee4207 |
comparison
equal
deleted
inserted
replaced
11815:e684f73cca04 | 11816:f6575adc6ee8 |
---|---|
1092 term->tl_buffer->b_fname, txt); | 1092 term->tl_buffer->b_fname, txt); |
1093 } | 1093 } |
1094 return term->tl_status_text; | 1094 return term->tl_status_text; |
1095 } | 1095 } |
1096 | 1096 |
1097 /* | |
1098 * Mark references in jobs of terminals. | |
1099 */ | |
1100 int | |
1101 set_ref_in_term(int copyID) | |
1102 { | |
1103 int abort = FALSE; | |
1104 term_T *term; | |
1105 typval_T tv; | |
1106 | |
1107 for (term = first_term; term != NULL; term = term->tl_next) | |
1108 if (term->tl_job != NULL) | |
1109 { | |
1110 tv.v_type = VAR_JOB; | |
1111 tv.vval.v_job = term->tl_job; | |
1112 abort = abort || set_ref_in_item(&tv, copyID, NULL, NULL); | |
1113 } | |
1114 return abort; | |
1115 } | |
1116 | |
1097 # ifdef WIN3264 | 1117 # ifdef WIN3264 |
1098 | 1118 |
1099 #define WINPTY_SPAWN_FLAG_AUTO_SHUTDOWN 1ul | 1119 #define WINPTY_SPAWN_FLAG_AUTO_SHUTDOWN 1ul |
1100 #define WINPTY_SPAWN_FLAG_EXIT_AFTER_SHUTDOWN 2ull | 1120 #define WINPTY_SPAWN_FLAG_EXIT_AFTER_SHUTDOWN 2ull |
1101 | 1121 |
1397 if (part < PART_COUNT && mch_report_winsize(fd, rows, cols) == OK) | 1417 if (part < PART_COUNT && mch_report_winsize(fd, rows, cols) == OK) |
1398 mch_stop_job(term->tl_job, (char_u *)"winch"); | 1418 mch_stop_job(term->tl_job, (char_u *)"winch"); |
1399 } | 1419 } |
1400 } | 1420 } |
1401 | 1421 |
1402 /* | |
1403 * Mark references in jobs of terminals. | |
1404 */ | |
1405 int | |
1406 set_ref_in_term(int copyID) | |
1407 { | |
1408 int abort = FALSE; | |
1409 term_T *term; | |
1410 typval_T tv; | |
1411 | |
1412 for (term = first_term; term != NULL; term = term->tl_next) | |
1413 if (term->tl_job != NULL) | |
1414 { | |
1415 tv.v_type = VAR_JOB; | |
1416 tv.vval.v_job = term->tl_job; | |
1417 abort = abort || set_ref_in_item(&tv, copyID, NULL, NULL); | |
1418 } | |
1419 return abort; | |
1420 } | |
1421 | |
1422 # endif | 1422 # endif |
1423 | 1423 |
1424 #endif /* FEAT_TERMINAL */ | 1424 #endif /* FEAT_TERMINAL */ |