mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 7.4.1342
Problem: On Mac OS/X the waittime must be > 0 for connect to work. Solution: Use select() in a different way. (partly by Kazunobu Kuriyama) Always use a waittime of 1 or more.
This commit is contained in:
@@ -10031,7 +10031,7 @@ f_ch_open(typval_T *argvars, typval_T *rettv)
|
||||
if ((item = dict_find(dict, (char_u *)"timeout", -1)) != NULL)
|
||||
timeout = get_tv_number(&item->di_tv);
|
||||
}
|
||||
if (waittime < 0 || timeout < 0)
|
||||
if (timeout < 0)
|
||||
{
|
||||
EMSG(_(e_invarg));
|
||||
return;
|
||||
|
Reference in New Issue
Block a user