0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 7.4.1765

Problem:    Undo options are not together in the options window.
Solution:   Put them together.  (Gary Johnson)
This commit is contained in:
Bram Moolenaar
2016-04-21 14:05:23 +02:00
parent ba53435144
commit 4694a17d1e
3 changed files with 13 additions and 6 deletions

View File

@@ -5138,7 +5138,8 @@ mch_start_job(char **argv, job_T *job, jobopt_T *options UNUSED)
if (pid == 0)
{
int null_fd = -1;
int null_fd = -1;
int stderr_works = TRUE;
/* child */
reset_signals(); /* handle signals normally */
@@ -5175,6 +5176,7 @@ mch_start_job(char **argv, job_T *job, jobopt_T *options UNUSED)
{
close(2);
ignored = dup(null_fd);
stderr_works = FALSE;
}
else if (use_out_for_err)
{
@@ -5210,7 +5212,8 @@ mch_start_job(char **argv, job_T *job, jobopt_T *options UNUSED)
/* See above for type of argv. */
execvp(argv[0], argv);
// perror("executing job failed");
if (stderr_works)
perror("executing job failed");
_exit(EXEC_FAILED); /* exec failed, return failure code */
}