Skip to content

Commit 5b9f445

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents b9a4137 + 015efc3 commit 5b9f445

File tree

12 files changed

+62
-26
lines changed

12 files changed

+62
-26
lines changed

runtime/doc/diff.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
*diff.txt* For Vim version 7.4. Last change: 2015 Nov 01
1+
*diff.txt* For Vim version 7.4. Last change: 2016 Aug 24
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
55

66

77
*diff* *vimdiff* *gvimdiff* *diff-mode*
8-
This file describes the |+diff| feature: Showing differences between two,
9-
three or four versions of the same file.
8+
This file describes the |+diff| feature: Showing differences between two to
9+
eight versions of the same file.
1010

1111
The basics are explained in section |08.7| of the user manual.
1212

@@ -117,7 +117,7 @@ To make these commands use a vertical split, prepend |:vertical|. Examples: >
117117
If you always prefer a vertical split include "vertical" in 'diffopt'.
118118

119119
*E96*
120-
There can be up to four buffers with 'diff' set.
120+
There can be up to eight buffers with 'diff' set.
121121

122122
Since the option values are remembered with the buffer, you can edit another
123123
file for a moment and come back to the same file and be in diff mode again.

src/channel.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ channel_open(
723723
if ((host = gethostbyname(hostname)) == NULL)
724724
{
725725
ch_error(channel, "in gethostbyname() in channel_open()");
726-
PERROR("E901: gethostbyname() in channel_open()");
726+
PERROR(_("E901: gethostbyname() in channel_open()"));
727727
channel_free(channel);
728728
return NULL;
729729
}
@@ -750,7 +750,7 @@ channel_open(
750750
if (sd == -1)
751751
{
752752
ch_error(channel, "in socket() in channel_open().");
753-
PERROR("E898: socket() in channel_open()");
753+
PERROR(_("E898: socket() in channel_open()"));
754754
channel_free(channel);
755755
return NULL;
756756
}
@@ -2091,7 +2091,7 @@ channel_exe_cmd(channel_T *channel, int part, typval_T *argv)
20912091
{
20922092
ch_error(channel, "received command with non-string argument");
20932093
if (p_verbose > 2)
2094-
EMSG("E903: received command with non-string argument");
2094+
EMSG(_("E903: received command with non-string argument"));
20952095
return;
20962096
}
20972097
arg = argv[1].vval.v_string;
@@ -2150,13 +2150,13 @@ channel_exe_cmd(channel_T *channel, int part, typval_T *argv)
21502150
{
21512151
ch_error(channel, "last argument for expr/call must be a number");
21522152
if (p_verbose > 2)
2153-
EMSG("E904: last argument for expr/call must be a number");
2153+
EMSG(_("E904: last argument for expr/call must be a number"));
21542154
}
21552155
else if (is_call && argv[2].v_type != VAR_LIST)
21562156
{
21572157
ch_error(channel, "third argument for call must be a list");
21582158
if (p_verbose > 2)
2159-
EMSG("E904: third argument for call must be a list");
2159+
EMSG(_("E904: third argument for call must be a list"));
21602160
}
21612161
else
21622162
{
@@ -2216,7 +2216,7 @@ channel_exe_cmd(channel_T *channel, int part, typval_T *argv)
22162216
else if (p_verbose > 2)
22172217
{
22182218
ch_errors(channel, "Received unknown command: %s", (char *)cmd);
2219-
EMSG2("E905: received unknown command: %s", cmd);
2219+
EMSG2(_("E905: received unknown command: %s"), cmd);
22202220
}
22212221
}
22222222

@@ -3407,7 +3407,7 @@ channel_send(channel_T *channel, int part, char_u *buf, int len, char *fun)
34073407
if (!channel->ch_error && fun != NULL)
34083408
{
34093409
ch_errors(channel, "%s(): write while not connected", fun);
3410-
EMSG2("E630: %s(): write while not connected", fun);
3410+
EMSG2(_("E630: %s(): write while not connected"), fun);
34113411
}
34123412
channel->ch_error = TRUE;
34133413
return FAIL;
@@ -3432,7 +3432,7 @@ channel_send(channel_T *channel, int part, char_u *buf, int len, char *fun)
34323432
if (!channel->ch_error && fun != NULL)
34333433
{
34343434
ch_errors(channel, "%s(): write failed", fun);
3435-
EMSG2("E631: %s(): write failed", fun);
3435+
EMSG2(_("E631: %s(): write failed"), fun);
34363436
}
34373437
channel->ch_error = TRUE;
34383438
return FAIL;

src/evalfunc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7432,7 +7432,7 @@ f_matchadd(typval_T *argvars UNUSED, typval_T *rettv UNUSED)
74327432
return;
74337433
if (id >= 1 && id <= 3)
74347434
{
7435-
EMSGN("E798: ID is reserved for \":match\": %ld", id);
7435+
EMSGN(_("E798: ID is reserved for \":match\": %ld"), id);
74367436
return;
74377437
}
74387438

@@ -7497,7 +7497,7 @@ f_matchaddpos(typval_T *argvars UNUSED, typval_T *rettv UNUSED)
74977497
/* id == 3 is ok because matchaddpos() is supposed to substitute :3match */
74987498
if (id == 1 || id == 2)
74997499
{
7500-
EMSGN("E798: ID is reserved for \":match\": %ld", id);
7500+
EMSGN(_("E798: ID is reserved for \":match\": %ld"), id);
75017501
return;
75027502
}
75037503

src/ex_cmds.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7088,7 +7088,7 @@ helptags_one(
70887088
|| filecount == 0)
70897089
{
70907090
if (!got_int)
7091-
EMSG2("E151: No match: %s", NameBuff);
7091+
EMSG2(_("E151: No match: %s"), NameBuff);
70927092
return;
70937093
}
70947094

@@ -7331,7 +7331,7 @@ do_helptags(char_u *dirname, int add_help_tags)
73317331
EW_FILE|EW_SILENT) == FAIL
73327332
|| filecount == 0)
73337333
{
7334-
EMSG2("E151: No match: %s", NameBuff);
7334+
EMSG2(_("E151: No match: %s"), NameBuff);
73357335
return;
73367336
}
73377337

src/spell.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2470,7 +2470,7 @@ did_set_spelllang(win_T *wp)
24702470
* destroying the buffer we are using... */
24712471
if (!bufref_valid(&bufref))
24722472
{
2473-
ret_msg = (char_u *)"E797: SpellFileMissing autocommand deleted buffer";
2473+
ret_msg = (char_u *)N_("E797: SpellFileMissing autocommand deleted buffer");
24742474
goto theend;
24752475
}
24762476
#endif

src/structs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2308,7 +2308,7 @@ struct file_buffer
23082308
/*
23092309
* Stuff for diff mode.
23102310
*/
2311-
# define DB_COUNT 4 /* up to four buffers can be diff'ed */
2311+
# define DB_COUNT 8 /* up to eight buffers can be diff'ed */
23122312

23132313
/*
23142314
* Each diffblock defines where a block of lines starts in each of the buffers

src/tag.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,6 +1078,9 @@ do_tag(
10781078
curwin->w_tagstackidx = tagstackidx;
10791079
#ifdef FEAT_WINDOWS
10801080
postponed_split = 0; /* don't split next time */
1081+
# ifdef FEAT_QUICKFIX
1082+
g_do_tagpreview = 0; /* don't do tag preview next time */
1083+
# endif
10811084
#endif
10821085

10831086
#ifdef FEAT_CSCOPE

src/testdir/runtest.vim

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,17 @@ function RunTheTest(test)
105105
endif
106106

107107
" Close any extra windows and make the current one not modified.
108-
while winnr('$') > 1
108+
while 1
109+
let wincount = winnr('$')
110+
if wincount == 1
111+
break
112+
endif
109113
bwipe!
114+
if wincount == winnr('$')
115+
" Did not manage to close a window.
116+
only!
117+
break
118+
endif
110119
endwhile
111120
set nomodified
112121
endfunc

src/testdir/test_tagjump.vim

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,20 @@ func Test_ptag_with_notagstack()
77
set tagstack&vim
88
endfunc
99

10+
func Test_cancel_ptjump()
11+
set tags=Xtags
12+
call writefile(["!_TAG_FILE_ENCODING\tutf-8\t//",
13+
\ "word\tfile1\tcmd1",
14+
\ "word\tfile2\tcmd2"],
15+
\ 'Xtags')
16+
17+
only!
18+
call feedkeys(":ptjump word\<CR>\<CR>", "xt")
19+
help
20+
call assert_equal(2, winnr('$'))
21+
22+
call delete('Xtags')
23+
quit
24+
endfunc
25+
1026
" vim: shiftwidth=2 sts=2 expandtab

src/userfunc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1955,7 +1955,7 @@ ex_function(exarg_T *eap)
19551955
p += 7;
19561956
if (current_funccal == NULL)
19571957
{
1958-
emsg_funcname(N_("E932 Closure function should not be at top level: %s"),
1958+
emsg_funcname(N_("E932: Closure function should not be at top level: %s"),
19591959
name == NULL ? (char_u *)"" : name);
19601960
goto erret;
19611961
}
@@ -2738,7 +2738,7 @@ ex_delfunction(exarg_T *eap)
27382738
/* A normal function (not a numbered function or lambda) has a
27392739
* refcount of 1 for the entry in the hashtable. When deleting
27402740
* it and the refcount is more than one, it should be kept.
2741-
* A numbered function and lambda snould be kept if the refcount is
2741+
* A numbered function and lambda should be kept if the refcount is
27422742
* one or more. */
27432743
if (fp->uf_refcount > (func_name_refcount(fp->uf_name) ? 0 : 1))
27442744
{
@@ -3479,7 +3479,7 @@ free_unref_funccal(int copyID, int testing)
34793479
}
34803480

34813481
/*
3482-
* Get function call environment based on bactrace debug level
3482+
* Get function call environment based on backtrace debug level
34833483
*/
34843484
static funccall_T *
34853485
get_funccal(void)

0 commit comments

Comments
 (0)