forked from aniani/vim
patch 7.4.1295
Problem: string(job) doesn't work well on MS-Windows. Solution: Use the process ID. (Yasuhiro Matsumoto)
This commit is contained in:
@@ -21606,8 +21606,12 @@ get_tv_string_buf_chk(typval_T *varp, char_u *buf)
|
|||||||
# ifdef UNIX
|
# ifdef UNIX
|
||||||
vim_snprintf((char *)buf, NUMBUFLEN,
|
vim_snprintf((char *)buf, NUMBUFLEN,
|
||||||
"process %ld %s", (long)job->jv_pid, status);
|
"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
|
# else
|
||||||
/* TODO */
|
/* fall-back */
|
||||||
vim_snprintf((char *)buf, NUMBUFLEN, "process ? %s", status);
|
vim_snprintf((char *)buf, NUMBUFLEN, "process ? %s", status);
|
||||||
# endif
|
# endif
|
||||||
return buf;
|
return buf;
|
||||||
|
|||||||
@@ -747,6 +747,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1295,
|
||||||
/**/
|
/**/
|
||||||
1294,
|
1294,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user