mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-11 15:37:29 +02:00
Merge remote-tracking branch 'vim/master'
This commit is contained in:
Vendored
+1
-1
@@ -12146,7 +12146,7 @@ fi
|
||||
for ac_func in fchdir fchown fsync getcwd getpseudotty \
|
||||
getpwent getpwnam getpwuid getrlimit gettimeofday getwd lstat \
|
||||
memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
|
||||
setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
|
||||
getpgid setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
|
||||
sigprocmask sigvec strcasecmp strerror strftime stricmp strncasecmp \
|
||||
strnicmp strpbrk strtol tgetent towlower towupper iswupper \
|
||||
usleep utime utimes
|
||||
|
||||
+3
-2
@@ -158,7 +158,9 @@
|
||||
#undef HAVE_FCHOWN
|
||||
#undef HAVE_FSEEKO
|
||||
#undef HAVE_FSYNC
|
||||
#undef HAVE_FLOAT_FUNCS
|
||||
#undef HAVE_GETCWD
|
||||
#undef HAVE_GETPGID
|
||||
#undef HAVE_GETPSEUDOTTY
|
||||
#undef HAVE_GETPWENT
|
||||
#undef HAVE_GETPWNAM
|
||||
@@ -167,13 +169,12 @@
|
||||
#undef HAVE_GETTIMEOFDAY
|
||||
#undef HAVE_GETWD
|
||||
#undef HAVE_ICONV
|
||||
#undef HAVE_NL_LANGINFO_CODESET
|
||||
#undef HAVE_LSTAT
|
||||
#undef HAVE_MEMSET
|
||||
#undef HAVE_MKDTEMP
|
||||
#undef HAVE_NANOSLEEP
|
||||
#undef HAVE_NL_LANGINFO_CODESET
|
||||
#undef HAVE_OPENDIR
|
||||
#undef HAVE_FLOAT_FUNCS
|
||||
#undef HAVE_PUTENV
|
||||
#undef HAVE_QSORT
|
||||
#undef HAVE_READLINK
|
||||
|
||||
+1
-1
@@ -3694,7 +3694,7 @@ dnl Can only be used for functions that do not require any include.
|
||||
AC_CHECK_FUNCS(fchdir fchown fsync getcwd getpseudotty \
|
||||
getpwent getpwnam getpwuid getrlimit gettimeofday getwd lstat \
|
||||
memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
|
||||
setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
|
||||
getpgid setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
|
||||
sigprocmask sigvec strcasecmp strerror strftime stricmp strncasecmp \
|
||||
strnicmp strpbrk strtol tgetent towlower towupper iswupper \
|
||||
usleep utime utimes)
|
||||
|
||||
+10
-14
@@ -906,6 +906,7 @@ ex_diffpatch(exarg_T *eap)
|
||||
int browse_flag = cmdmod.browse;
|
||||
#endif
|
||||
stat_T st;
|
||||
char_u *esc_name = NULL;
|
||||
|
||||
#ifdef FEAT_BROWSE
|
||||
if (cmdmod.browse)
|
||||
@@ -935,11 +936,14 @@ ex_diffpatch(exarg_T *eap)
|
||||
/* Get the absolute path of the patchfile, changing directory below. */
|
||||
fullname = FullName_save(eap->arg, FALSE);
|
||||
#endif
|
||||
buflen = STRLEN(tmp_orig) + (
|
||||
esc_name = vim_strsave_shellescape(
|
||||
# ifdef UNIX
|
||||
fullname != NULL ? STRLEN(fullname) :
|
||||
fullname != NULL ? fullname :
|
||||
# endif
|
||||
STRLEN(eap->arg)) + STRLEN(tmp_new) + 16;
|
||||
eap->arg, TRUE, TRUE);
|
||||
if (esc_name == NULL)
|
||||
goto theend;
|
||||
buflen = STRLEN(tmp_orig) + STRLEN(esc_name) + STRLEN(tmp_new) + 16;
|
||||
buf = alloc((unsigned)buflen);
|
||||
if (buf == NULL)
|
||||
goto theend;
|
||||
@@ -977,17 +981,8 @@ ex_diffpatch(exarg_T *eap)
|
||||
{
|
||||
/* Build the patch command and execute it. Ignore errors. Switch to
|
||||
* cooked mode to allow the user to respond to prompts. */
|
||||
vim_snprintf((char *)buf, buflen,
|
||||
#ifdef UNIX
|
||||
"patch -o %s %s < '%s'",
|
||||
#else
|
||||
"patch -o %s %s < \"%s\"",
|
||||
#endif
|
||||
tmp_new, tmp_orig,
|
||||
# ifdef UNIX
|
||||
fullname != NULL ? fullname :
|
||||
# endif
|
||||
eap->arg);
|
||||
vim_snprintf((char *)buf, buflen, "patch -o %s %s < %s",
|
||||
tmp_new, tmp_orig, esc_name);
|
||||
#ifdef FEAT_AUTOCMD
|
||||
block_autocmds(); /* Avoid ShellCmdPost stuff */
|
||||
#endif
|
||||
@@ -1078,6 +1073,7 @@ theend:
|
||||
#ifdef UNIX
|
||||
vim_free(fullname);
|
||||
#endif
|
||||
vim_free(esc_name);
|
||||
#ifdef FEAT_BROWSE
|
||||
vim_free(browseFile);
|
||||
cmdmod.browse = browse_flag;
|
||||
|
||||
+3
-1
@@ -3083,7 +3083,7 @@ executable_file(char_u *name)
|
||||
}
|
||||
|
||||
/*
|
||||
* Return 1 if "name" can be found in $PATH and executed, 0 if not.
|
||||
* Return TRUE if "name" can be found in $PATH and executed, FALSE if not.
|
||||
* If "use_path" is FALSE only check if "name" is executable.
|
||||
* Return -1 if unknown.
|
||||
*/
|
||||
@@ -5451,8 +5451,10 @@ mch_stop_job(job_T *job, char_u *how)
|
||||
|
||||
/* TODO: have an option to only kill the process, not the group? */
|
||||
job_pid = job->jv_pid;
|
||||
#ifdef HAVE_GETPGID
|
||||
if (job_pid == getpgid(job_pid))
|
||||
job_pid = -job_pid;
|
||||
#endif
|
||||
|
||||
kill(job_pid, sig);
|
||||
|
||||
|
||||
@@ -970,7 +970,8 @@ break;
|
||||
/* end of AUTO */
|
||||
|
||||
STARTTEST
|
||||
:set tw=0 wm=60 columns=80 noai fo=croq
|
||||
:set tw=0 noai fo=croq
|
||||
:let &wm = &columns - 20
|
||||
/serious/e
|
||||
a about life, the universe, and the rest
|
||||
ENDTEST
|
||||
|
||||
@@ -319,7 +319,7 @@ func Test_diffpatch()
|
||||
new
|
||||
call assert_fails('diffpatch Xpatch', 'E816:')
|
||||
|
||||
for name in ['Xpatch', 'Xpatch$HOME']
|
||||
for name in ['Xpatch', 'Xpatch$HOME', 'Xpa''tch']
|
||||
call setline(1, ['1', '2', '3'])
|
||||
if name != 'Xpatch'
|
||||
call rename('Xpatch', name)
|
||||
|
||||
@@ -779,6 +779,12 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
445,
|
||||
/**/
|
||||
444,
|
||||
/**/
|
||||
443,
|
||||
/**/
|
||||
442,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user