0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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)
This commit is contained in:
Bram Moolenaar
2018-06-19 19:59:20 +02:00
parent 1ceebb4efc
commit f9c3883b11
6 changed files with 80 additions and 25 deletions

View File

@@ -5336,6 +5336,12 @@ term_send_eof(channel_T *ch)
}
}
job_T *
term_getjob(term_T *term)
{
return term != NULL ? term->tl_job : NULL;
}
# if defined(WIN3264) || defined(PROTO)
/**************************************