From f9c3883b11b33f0c548df5e949ba59fde74d3e7b Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 19 Jun 2018 19:59:20 +0200 Subject: 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 #2994) --- src/proto/terminal.pro | 1 + 1 file changed, 1 insertion(+) (limited to 'src/proto') diff --git a/src/proto/terminal.pro b/src/proto/terminal.pro index 25f9647f2..1031876c4 100644 --- a/src/proto/terminal.pro +++ b/src/proto/terminal.pro @@ -55,5 +55,6 @@ void f_term_setkill(typval_T *argvars, typval_T *rettv); void f_term_start(typval_T *argvars, typval_T *rettv); void f_term_wait(typval_T *argvars, typval_T *rettv); void term_send_eof(channel_T *ch); +job_T *term_getjob(term_T *term); int terminal_enabled(void); /* vim: set ft=c : */ -- cgit v1.2.1