Skip to content

Commit 4694a17

Browse files
committed
patch 7.4.1765
Problem: Undo options are not together in the options window. Solution: Put them together. (Gary Johnson)
1 parent ba53435 commit 4694a17

3 files changed

Lines changed: 13 additions & 6 deletions

File tree

runtime/optwin.vim

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,10 @@ call <SID>Header("editing text")
738738
call append("$", "undolevels\tmaximum number of changes that can be undone")
739739
call append("$", "\t(global or local to buffer)")
740740
call append("$", " \tset ul=" . &ul)
741+
call append("$", "undofile\tautomatically save and restore undo history")
742+
call <SID>BinOptionG("udf", &udf)
743+
call append("$", "undodir\tlist of directories for undo files")
744+
call <SID>OptionG("udir", &udir)
741745
call append("$", "undoreload\tmaximum number lines to save for undo on a buffer reload")
742746
call append("$", " \tset ur=" . &ur)
743747
call append("$", "modified\tchanges have been made and not written to a file")
@@ -1074,10 +1078,6 @@ if has("vertsplit")
10741078
call append("$", "cmdwinheight\theight of the command-line window")
10751079
call <SID>OptionG("cwh", &cwh)
10761080
endif
1077-
call append("$", "undofile\tautomatically save and restore undo history")
1078-
call <SID>BinOptionG("udf", &udf)
1079-
call append("$", "undodir\tlist of directories for undo files")
1080-
call <SID>OptionG("udir", &udir)
10811081

10821082

10831083
call <SID>Header("executing external commands")

src/os_unix.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5138,7 +5138,8 @@ mch_start_job(char **argv, job_T *job, jobopt_T *options UNUSED)
51385138

51395139
if (pid == 0)
51405140
{
5141-
int null_fd = -1;
5141+
int null_fd = -1;
5142+
int stderr_works = TRUE;
51425143

51435144
/* child */
51445145
reset_signals(); /* handle signals normally */
@@ -5175,6 +5176,7 @@ mch_start_job(char **argv, job_T *job, jobopt_T *options UNUSED)
51755176
{
51765177
close(2);
51775178
ignored = dup(null_fd);
5179+
stderr_works = FALSE;
51785180
}
51795181
else if (use_out_for_err)
51805182
{
@@ -5210,7 +5212,8 @@ mch_start_job(char **argv, job_T *job, jobopt_T *options UNUSED)
52105212
/* See above for type of argv. */
52115213
execvp(argv[0], argv);
52125214

5213-
// perror("executing job failed");
5215+
if (stderr_works)
5216+
perror("executing job failed");
52145217
_exit(EXEC_FAILED); /* exec failed, return failure code */
52155218
}
52165219

src/version.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,10 @@ static char *(features[]) =
748748

749749
static int included_patches[] =
750750
{ /* Add new patch number below this line */
751+
/**/
752+
1765,
753+
/**/
754+
1764,
751755
/**/
752756
1763,
753757
/**/

0 commit comments

Comments
 (0)