comparison src/terminal.c @ 14139:4d3f6bf86bec v8.1.0087

patch 8.1.0087: v:shell_error is always zero when using terminal for "!cmd" commit https://github.com/vim/vim/commit/f9c3883b11b33f0c548df5e949ba59fde74d3e7b Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jun 19 19:59:20 2018 +0200 patch 8.1.0087: v:shell_error is always zero when using terminal for "!cmd" Problem: v:shell_error is always zero when using terminal for "!cmd". Solution: Use "exitval" of terminal-job. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/2994)
author Christian Brabandt <cb@256bit.org>
date Tue, 19 Jun 2018 20:00:08 +0200
parents 08b0b6d6cbe7
children 3c80092eb211
comparison
equal deleted inserted replaced
14138:aa8127dba7d0 14139:4d3f6bf86bec
5334 channel_send(ch, PART_IN, (char_u *)"\004\r", 2, NULL); 5334 channel_send(ch, PART_IN, (char_u *)"\004\r", 2, NULL);
5335 # endif 5335 # endif
5336 } 5336 }
5337 } 5337 }
5338 5338
5339 job_T *
5340 term_getjob(term_T *term)
5341 {
5342 return term != NULL ? term->tl_job : NULL;
5343 }
5344
5339 # if defined(WIN3264) || defined(PROTO) 5345 # if defined(WIN3264) || defined(PROTO)
5340 5346
5341 /************************************** 5347 /**************************************
5342 * 2. MS-Windows implementation. 5348 * 2. MS-Windows implementation.
5343 */ 5349 */