Skip to content

Commit c1e8125

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 06b4026 + a1f4cb9 commit c1e8125

18 files changed

Lines changed: 95 additions & 53 deletions

runtime/doc/digraph.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*digraph.txt* For Vim version 8.0. Last change: 2014 Jun 19
1+
*digraph.txt* For Vim version 8.0. Last change: 2016 Nov 04
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar

runtime/doc/eval.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 8.0. Last change: 2016 Oct 15
1+
*eval.txt* For Vim version 8.0. Last change: 2016 Nov 04
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2523,7 +2523,7 @@ assert_exception({error} [, {msg}]) *assert_exception()*
25232523
assert_fails({cmd} [, {error}]) *assert_fails()*
25242524
Run {cmd} and add an error message to |v:errors| if it does
25252525
NOT produce an error.
2526-
When {error} is given it must match |v:errmsg|.
2526+
When {error} is given it must match in |v:errmsg|.
25272527

25282528
assert_false({actual} [, {msg}]) *assert_false()*
25292529
When {actual} is not false an error message is added to

runtime/doc/quickfix.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*quickfix.txt* For Vim version 8.0. Last change: 2016 Jul 17
1+
*quickfix.txt* For Vim version 8.0. Last change: 2016 Nov 04
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -878,7 +878,7 @@ need to write down a "todo" list.
878878

879879

880880
The Vim plugins in the "compiler" directory will set options to use the
881-
selected compiler. For ":compiler" local options are set, for ":compiler!"
881+
selected compiler. For `:compiler` local options are set, for `:compiler!`
882882
global options.
883883
*current_compiler*
884884
To support older Vim versions, the plugins always use "current_compiler" and

runtime/doc/todo.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*todo.txt* For Vim version 8.0. Last change: 2016 Oct 27
1+
*todo.txt* For Vim version 8.0. Last change: 2016 Nov 06
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -97,6 +97,11 @@ Regexp problems:
9797
matches the empty string. (Dominique Pelle, 2015 Oct 2, Nov 24)
9898
had_endbrace[] is set but not initialized or used.
9999

100+
Patch to support nested namespace syntax. (Pauli, 2016 Oct 30, #1214)
101+
102+
Make html indent file use javascript indent, now that it's not just cindent.
103+
#1220
104+
100105
json_encode(): should convert to utf-8. (Nikolai Pavlov, 2016 Jan 23)
101106
What if there is an invalid character?
102107

@@ -114,6 +119,7 @@ Patch to reset ex_exitvalue after catch. (Christian Brabandt, 2016 Oct 23)
114119

115120
Patch to deal with changed configure events in GTK 3. (Jan Alexander Steffens,
116121
2016 Oct 23 #1193)
122+
Remarks from nuko8, 2016 Nov 2.
117123

118124
Wrong diff highlighting with three files. (2016 Oct 20, #1186)
119125
Also get E749 on exit.
@@ -145,6 +151,9 @@ Add tests for using number larger than number of lines in buffer.
145151
Patch to make v:shell_error writable. (Christian Brabandt, 2016 Sep 27)
146152
Is there another solution?
147153

154+
On MS-Windows with 'clipboard' set to "unnamed" this doesn't work to double
155+
lines: :g/^/normal yyp On Unix it works OK. (Bryce Orgill, 2016 Nov 5)
156+
148157
Invalid behavior with NULL list. (Nikolai Pavlov, #768)
149158
E.g. deepcopy(test_null_list())
150159

runtime/filetype.vim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Vim support file to detect file types
22
"
33
" Maintainer: Bram Moolenaar <[email protected]>
4-
" Last Change: 2016 Oct 28
4+
" Last Change: 2016 Oct 31
55

66
" Listen very carefully, I will say this only once
77
if exists("did_load_filetypes")
@@ -2671,6 +2671,9 @@ au BufNewFile,BufRead mutt{ng,}rc*,Mutt{ng,}rc* call s:StarSetf('muttrc')
26712671
" Nroff macros
26722672
au BufNewFile,BufRead tmac.* call s:StarSetf('nroff')
26732673

2674+
" OpenBSD hostname.if
2675+
au BufNewFile,BufRead /etc/hostname.* call s:StarSetf('config')
2676+
26742677
" Pam conf
26752678
au BufNewFile,BufRead */etc/pam.d/* call s:StarSetf('pamconf')
26762679

runtime/syntax/synload.vim

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
" Vim syntax support file
22
" Maintainer: Bram Moolenaar <[email protected]>
3-
" Last Change: 2012 Sep 25
3+
" Last Change: 2016 Nov 04
44

55
" This file sets up for syntax highlighting.
66
" It is loaded from "syntax.vim" and "manual.vim".
@@ -69,8 +69,11 @@ au Syntax c,cpp,cs,idl,java,php,datascript
6969

7070

7171
" Source the user-specified syntax highlighting file
72-
if exists("mysyntaxfile") && filereadable(expand(mysyntaxfile))
73-
execute "source " . mysyntaxfile
72+
if exists("mysyntaxfile")
73+
let s:fname = expand(mysyntaxfile)
74+
if filereadable(s:fname)
75+
execute "source " . fnameescape(s:fname)
76+
endif
7477
endif
7578

7679
" Restore 'cpoptions'

src/buffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4945,7 +4945,7 @@ do_arg_all(
49454945
}
49464946
#ifdef FEAT_WINDOWS
49474947
/* don't close last window */
4948-
if (firstwin == lastwin
4948+
if (ONE_WINDOW
49494949
&& (first_tabpage->tp_next == NULL || !had_tab))
49504950
#endif
49514951
use_firstwin = TRUE;

src/ex_docmd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7256,7 +7256,7 @@ ex_quit(exarg_T *eap)
72567256
* :h|wincmd w|1q - don't quit
72577257
* :h|wincmd w|q - quit
72587258
*/
7259-
if (only_one_window() && (firstwin == lastwin || eap->addr_count == 0))
7259+
if (only_one_window() && (ONE_WINDOW || eap->addr_count == 0))
72607260
#endif
72617261
getout(0);
72627262
#ifdef FEAT_WINDOWS

src/globals.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,7 @@ EXTERN int clip_unnamed_saved INIT(= 0);
546546
EXTERN win_T *firstwin; /* first window */
547547
EXTERN win_T *lastwin; /* last window */
548548
EXTERN win_T *prevwin INIT(= NULL); /* previous window */
549+
# define ONE_WINDOW (firstwin == lastwin)
549550
# define W_NEXT(wp) ((wp)->w_next)
550551
# define FOR_ALL_WINDOWS(wp) for (wp = firstwin; wp != NULL; wp = wp->w_next)
551552
# define FOR_ALL_TABPAGES(tp) for (tp = first_tabpage; tp != NULL; tp = tp->tp_next)
@@ -563,6 +564,7 @@ EXTERN win_T *prevwin INIT(= NULL); /* previous window */
563564
#else
564565
# define firstwin curwin
565566
# define lastwin curwin
567+
# define ONE_WINDOW 1
566568
# define W_NEXT(wp) NULL
567569
# define FOR_ALL_WINDOWS(wp) wp = curwin;
568570
# define FOR_ALL_TABPAGES(tp) for (;FALSE;)

src/if_cscope.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,12 +1178,12 @@ cs_find_common(
11781178
}
11791179

11801180
# ifdef FEAT_AUTOCMD
1181-
if (*qfpos != '0')
1181+
if (*qfpos != '0'
1182+
&& apply_autocmds(EVENT_QUICKFIXCMDPRE, (char_u *)"cscope",
1183+
curbuf->b_fname, TRUE, curbuf))
11821184
{
1183-
apply_autocmds(EVENT_QUICKFIXCMDPRE, (char_u *)"cscope",
1184-
curbuf->b_fname, TRUE, curbuf);
11851185
# ifdef FEAT_EVAL
1186-
if (did_throw || force_abort)
1186+
if (aborting())
11871187
return FALSE;
11881188
# endif
11891189
}

0 commit comments

Comments
 (0)