mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-05-28 00:21:57 +02:00
Merge remote-tracking branch 'vim/master'
This commit is contained in:
@@ -1620,7 +1620,12 @@ ins_redraw(
|
||||
# endif
|
||||
# ifdef FEAT_AUTOCMD
|
||||
if (has_cursormovedI())
|
||||
{
|
||||
/* Make sure curswant is correct, an autocommand may call
|
||||
* getcurpos(). */
|
||||
update_curswant();
|
||||
apply_autocmds(EVENT_CURSORMOVEDI, NULL, NULL, FALSE, curbuf);
|
||||
}
|
||||
# endif
|
||||
# ifdef FEAT_CONCEAL
|
||||
if (curwin->w_p_cole > 0)
|
||||
|
||||
+5
-1
@@ -21633,8 +21633,12 @@ get_tv_string_buf_chk(typval_T *varp, char_u *buf)
|
||||
# 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;
|
||||
|
||||
+7
-1
@@ -3926,6 +3926,11 @@ wait4pid(pid_t child, waitstatus *status)
|
||||
}
|
||||
|
||||
#if defined(FEAT_JOB) || !defined(USE_SYSTEM) || defined(PROTO)
|
||||
/*
|
||||
* Parse "cmd" and put the white-separated parts in "argv".
|
||||
* "argv" is an allocated array with "argc" entries.
|
||||
* Returns FAIL when out of memory.
|
||||
*/
|
||||
int
|
||||
mch_parse_cmd(char_u *cmd, int use_shcf, char ***argv, int *argc)
|
||||
{
|
||||
@@ -5129,7 +5134,8 @@ mch_stop_job(job_T *job, char_u *how)
|
||||
sig = atoi((char *)how);
|
||||
else
|
||||
return FAIL;
|
||||
kill(job->jv_pid, sig);
|
||||
/* TODO: have an option to only kill the process, not the group? */
|
||||
kill(-job->jv_pid, sig);
|
||||
return OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -23,6 +23,7 @@ else
|
||||
endif
|
||||
|
||||
let s:port = -1
|
||||
let s:chopt = has('macunix') ? {'waittime' : 1} : {}
|
||||
|
||||
func s:start_server()
|
||||
" The Python program writes the port number in Xportnr.
|
||||
@@ -60,7 +61,7 @@ func s:start_server()
|
||||
endif
|
||||
let s:port = l[0]
|
||||
|
||||
let handle = ch_open('localhost:' . s:port)
|
||||
let handle = ch_open('localhost:' . s:port, s:chopt)
|
||||
return handle
|
||||
endfunc
|
||||
|
||||
@@ -155,7 +156,7 @@ func Test_two_channels()
|
||||
endif
|
||||
call assert_equal('got it', ch_sendexpr(handle, 'hello!'))
|
||||
|
||||
let newhandle = ch_open('localhost:' . s:port)
|
||||
let newhandle = ch_open('localhost:' . s:port, s:chopt)
|
||||
call assert_equal('got it', ch_sendexpr(newhandle, 'hello!'))
|
||||
call assert_equal('got it', ch_sendexpr(handle, 'hello!'))
|
||||
|
||||
@@ -181,7 +182,7 @@ endfunc
|
||||
" Test that trying to connect to a non-existing port fails quickly.
|
||||
func Test_connect_waittime()
|
||||
let start = reltime()
|
||||
let handle = ch_open('localhost:9876')
|
||||
let handle = ch_open('localhost:9876', s:chopt)
|
||||
if handle >= 0
|
||||
" Oops, port does exists.
|
||||
call ch_close(handle)
|
||||
|
||||
@@ -762,6 +762,14 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1297,
|
||||
/**/
|
||||
1296,
|
||||
/**/
|
||||
1295,
|
||||
/**/
|
||||
1294,
|
||||
/**/
|
||||
1293,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user