Mercurial > vim
diff src/eval.c @ 8001:e5dbeb923ce6 v7.4.1295
commit https://github.com/vim/vim/commit/4d8747cdfc13843a5680dc8340fbeb6d32e7b626
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Feb 9 20:39:26 2016 +0100
patch 7.4.1295
Problem: string(job) doesn't work well on MS-Windows.
Solution: Use the process ID. (Yasuhiro Matsumoto)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 09 Feb 2016 20:45:05 +0100 |
parents | d244f2e46d69 |
children | 26f555e9aab1 |
line wrap: on
line diff
--- a/src/eval.c +++ b/src/eval.c @@ -21606,8 +21606,12 @@ get_tv_string_buf_chk(typval_T *varp, ch # ifdef UNIX vim_snprintf((char *)buf, NUMBUFLEN, "process %ld %s", (long)job->jv_pid, status); +# elif defined(WIN32) + vim_snprintf((char *)buf, NUMBUFLEN, + "process %ld %s", (long)job->jf_pi.dwProcessId, + status); # else - /* TODO */ + /* fall-back */ vim_snprintf((char *)buf, NUMBUFLEN, "process ? %s", status); # endif return buf;