Skip to content

Commit 709bce7

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 6d09304 + d672dde commit 709bce7

30 files changed

+681
-192
lines changed

Filelist

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ SRC_ALL = \
1414
ci/if_ver*.vim \
1515
src/Make_all.mak \
1616
src/README.md \
17-
src/README_VIM9.md \
1817
src/alloc.h \
1918
src/arabic.c \
2019
src/arglist.c \
@@ -661,6 +660,7 @@ SRC_EXTRA = \
661660
RT_ALL = \
662661
README.txt \
663662
README.md \
663+
README_VIM9.md \
664664
LICENSE \
665665
CONTRIBUTING.md \
666666
runtime/bugreport.vim \

runtime/doc/cmdline.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*cmdline.txt* For Vim version 8.2. Last change: 2019 Dec 17
1+
*cmdline.txt* For Vim version 8.2. Last change: 2020 Feb 15
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -586,6 +586,7 @@ followed by another Vim command:
586586
:command
587587
:cscope
588588
:debug
589+
:eval
589590
:folddoopen
590591
:folddoclosed
591592
:function

runtime/doc/eval.txt

+17-9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 8.2. Last change: 2020 Feb 14
1+
*eval.txt* For Vim version 8.2. Last change: 2020 Feb 22
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1992,7 +1992,7 @@ v:null An empty String. Used to put "null" in JSON. See
19921992

19931993
*v:numbersize* *numbersize-variable*
19941994
v:numbersize Number of bits in a Number. This is normally 64, but on some
1995-
systems it my be 32.
1995+
systems it may be 32.
19961996

19971997
*v:oldfiles* *oldfiles-variable*
19981998
v:oldfiles List of file names that is loaded from the |viminfo| file on
@@ -6924,6 +6924,10 @@ match({expr}, {pat} [, {start} [, {count}]]) *match()*
69246924
The 'ignorecase' option is used to set the ignore-caseness of
69256925
the pattern. 'smartcase' is NOT used. The matching is always
69266926
done like 'magic' is set and 'cpoptions' is empty.
6927+
Note that a match at the start is preferred, thus when the
6928+
pattern is using "*" (any number of matches) it tends to find
6929+
zero matches at the start instead of a number of matches
6930+
further down in the text.
69276931

69286932
Can also be used as a |method|: >
69296933
GetList()->match('word')
@@ -10727,6 +10731,7 @@ browsefilter Compiled with support for |browsefilter|.
1072710731
bsd Compiled on an OS in the BSD family (excluding macOS).
1072810732
builtin_terms Compiled with some builtin terminals.
1072910733
byte_offset Compiled with support for 'o' in 'statusline'
10734+
channel Compiled with support for |channel| and |job|
1073010735
cindent Compiled with 'cindent' support.
1073110736
clientserver Compiled with remote invocation support |clientserver|.
1073210737
clipboard Compiled with 'clipboard' support.
@@ -10841,7 +10846,7 @@ python_dynamic Python 2.x interface is dynamically loaded. |has-python|
1084110846
python3 Python 3.x interface available. |has-python|
1084210847
python3_compiled Compiled with Python 3.x interface. |has-python|
1084310848
python3_dynamic Python 3.x interface is dynamically loaded. |has-python|
10844-
pythonx Compiled with |python_x| interface. |has-pythonx|
10849+
pythonx Python 2.x and/or 3.x interface available. |python_x|
1084510850
qnx QNX version of Vim.
1084610851
quickfix Compiled with |quickfix| support.
1084710852
reltime Compiled with |reltime()| support.
@@ -11871,11 +11876,11 @@ text...
1187111876
":endtry" is reached thereafter, the next
1187211877
(dynamically) surrounding ":try" is checked for
1187311878
a corresponding ":finally" etc. Then the script
11874-
processing is terminated. (Whether a function
11875-
definition has an "abort" argument does not matter.)
11879+
processing is terminated. Whether a function
11880+
definition has an "abort" argument does not matter.
1187611881
Example: >
11877-
:try | edit too much | finally | echo "cleanup" | endtry
11878-
:echo "impossible" " not reached, script terminated above
11882+
try | call Unknown() | finally | echomsg "cleanup" | endtry
11883+
echomsg "not reached"
1187911884
<
1188011885
Moreover, an error or interrupt (dynamically) inside
1188111886
":try" and ":endtry" is converted to an exception. It
@@ -11892,8 +11897,8 @@ text...
1189211897
error exception is not caught, always beginning with
1189311898
the error number.
1189411899
Examples: >
11895-
:try | sleep 100 | catch /^Vim:Interrupt$/ | endtry
11896-
:try | edit | catch /^Vim(edit):E\d\+/ | echo "error" | endtry
11900+
try | sleep 100 | catch /^Vim:Interrupt$/ | endtry
11901+
try | edit | catch /^Vim(edit):E\d\+/ | echo "error" | endtry
1189711902
<
1189811903
*:cat* *:catch* *E603* *E604* *E605*
1189911904
:cat[ch] /{pattern}/ The following commands until the next |:catch|,
@@ -12048,6 +12053,9 @@ text...
1204812053
these are hard to recognize and therefore not to be
1204912054
used.
1205012055

12056+
The command cannot be followed by "|" and another
12057+
command, since "|" is seen as part of the expression.
12058+
1205112059

1205212060
*:exe* *:execute*
1205312061
:exe[cute] {expr1} .. Executes the string that results from the evaluation

runtime/doc/testing.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*testing.txt* For Vim version 8.2. Last change: 2020 Feb 08
1+
*testing.txt* For Vim version 8.2. Last change: 2020 Feb 22
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar

runtime/doc/textprop.txt

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*textprop.txt* For Vim version 8.2. Last change: 2020 Jan 10
1+
*textprop.txt* For Vim version 8.2. Last change: 2020 Feb 22
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -143,8 +143,9 @@ prop_add({lnum}, {col}, {props})
143143
within one line, or use "end_lnum" and "end_col" for a
144144
property that spans more than one line.
145145
When neither "length" nor "end_col" are given the property
146-
will be zero-width. That means it will not be highlighted but
147-
will move with the text, as a kind of mark.
146+
will be zero-width. That means it will move with the text, as
147+
a kind of mark. One character will be highlighted, if the
148+
type specifies highlighting.
148149
The property can end exactly at the last character of the
149150
text, or just after it. In the last case, if text is appended
150151
to the line, the text property size will increase, also when
@@ -335,10 +336,11 @@ properties below the changed text, so that they still highlight the same text,
335336
thus you don't need to update these.
336337

337338

338-
Text property columns are not updated: ~
339+
Text property columns are not updated or copied: ~
339340

340341
- When setting the line with |setline()| or through an interface, such as Lua,
341342
Tcl or Python. Vim does not know what text got inserted or deleted.
343+
- With a command like `:move`, which takes a line of text out of context.
342344

343345

344346
vim:tw=78:ts=8:noet:ft=help:norl:

runtime/doc/todo.txt

+31-17
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*todo.txt* For Vim version 8.2. Last change: 2020 Feb 15
1+
*todo.txt* For Vim version 8.2. Last change: 2020 Feb 25
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -38,15 +38,20 @@ browser use: https://github.com/vim/vim/issues/1234
3838
*known-bugs*
3939
-------------------- Known bugs and current work -----------------------
4040

41-
Include ipv6 syntax changes? (DJ Lucas, #5360)
42-
43-
Avoid modifyOtherKeys temporarily:
44-
call modify_other_keys(v:false) " disable modifyOtherKeys
45-
Should fix #5617.
41+
Patch for this (#5696):
42+
- Empty text prop which includes start/end does not grow when inserting text.
43+
(Axel Forsman, #5679)
4644

4745
Vim9 script:
46+
- "func" inside "vim9script" doesn't work? (Ben Jackson, #5670)
47+
- Completion for :disassemble
4848
- "echo Func()" is an error if Func() does not return anything.
49+
- Make "g:imported = Export.exported" work in Vim9 script.
50+
- Make Foo.Bar() work to call the dict function. (#5676)
51+
- make "let var: string" work in a vim9script.
4952
- Disallow unlet for local/script/imported vars
53+
- Support type for ":let"/":const" at script level for Vim9 script.
54+
(Ben Jackson, #5671)
5055
- :func inside vim9script must still use a:arg
5156
- Make "++nr" work.
5257
- Check that import in legacy script works and puts item in s:
@@ -79,20 +84,25 @@ Vim9 script:
7984
LOADVARARG (varags idx)
8085

8186
Popup windows:
87+
- With terminal in popup, allow for popup_hide() to temporarily hide it.?
8288
- Use popup (or popup menu) for command line completion
8389
- When using a popup for the info of a completion menu, and there is not
8490
enough space, let the popup overlap with the menu. (#4544)
8591
- Implement flip option.
8692
- Make redrawing more efficient and avoid flicker:
8793
- put popup menu also in popup_mask?
94+
- Match does not have right BG color if line length equals popup width.
95+
(#5658)
8896
- Any other commands to disable in a popup window?
8997
Use ERROR_IF_POPUP_WINDOW for these.
9098
- Figure out the size and position better if wrapping inserts indent
9199

92100
Text properties:
101+
- prop_find() may not find text property at start of the line. (#5663)
102+
- Get E685 with a sequence of commands. (#5674)
93103
- Combining text property with 'cursorline' does not always work (Billie
94104
Cleek, #5533)
95-
- Text properties spanning more than one line
105+
- Text properties spanning more than one line. #5683
96106
- See remarks at top of src/textprop.c
97107

98108
'incsearch' with :s:
@@ -161,14 +171,17 @@ Error numbers available:
161171
E451, E452, E453, E454, E460, E489, E491, E565, E578, E610, E611, E653,
162172
E654, E856, E857, E860, E861, E900
163173

164-
Patch to move duplicated code to a function. (Yegappan Lakshmanan, #5330)
174+
Patch to fix drawing error with DirectX. (James Grant, #5688)
175+
Causes flicker on resizing.
165176

166177
Patch to use more FOR_ALL_ macros and use them. (Yegappan Lakshmanan, #5339)
167178

168-
Patch to explain use of "%" in :!. (#5591)
179+
Patch to explain use of "%" in :!. (David Briscoe, #5591)
169180

170181
Patch to add "-d" to xxd. (#5616)
171182

183+
Patch to add Turkish manual. (Emir Sarı, #5641)
184+
172185
Running test_gui and test_gui_init with Motif sometimes kills the window
173186
manager. Problem with Motif? Now test_gui crashes in submenu_change().
174187
Athena is OK.
@@ -187,6 +200,11 @@ undo result wrong: Masato Nishihata, #4798
187200
When 'lazyredraw' is set sometimes the title is not updated.
188201
(Jason Franklin, 2020 Feb 3) Looks like a race condition.
189202

203+
Strange sequence of BufWipeout and BufNew events while doing omni-complete.
204+
(Paul Jolly, #5656)
205+
Get BufDelete without preceding BufNew. (Paul Jolly, #5694)
206+
BufWinenter event not fired when saving unnamed buffer. (Paul Jolly, #5655)
207+
190208
Patch to add function to return the text used in the quickfix window.
191209
(Yegappan, #5465)
192210

@@ -203,11 +221,6 @@ Undo puts cursor in wrong line after "cG<Esc>" undo.
203221
:unmap <c-n> gives error but does remove the mapping. (Antony Scriven, 2019
204222
Dec 19)
205223

206-
Dos uninstal may delete vim.bat from the wrong directory (e.g., when someone
207-
makes his own wrapper). Add a magic string with the version number to the
208-
.bat file and check for it in the uninstaller. E.g.
209-
# uninstall key: vim8.1*
210-
211224
Patch to fix session file when using multiple tab pages. (Jason Franklin, 2019
212225
May 20)
213226
Also put :argadd commands at the start for all buffers, so that their order
@@ -230,6 +243,8 @@ Should do current file first and not split it up when more results are found.
230243
Undo history wrong when ":next file" re-uses a buffer. (#5426)
231244
ex_next() should pass flag to do_argfile(), then to do_ecmd().
232245

246+
Patch to add "note" type to quickfix. (#5527) Missing tests.
247+
233248
Adding "10" to 'spellsuggest' causes spell suggestions to become very slow.
234249
(#4087)
235250

@@ -238,9 +253,6 @@ match, total matches). (#5631)
238253
Patch to provide search stats in a variable, so that it can be used in the
239254
statusline. (Fujiwara Takuya, #4446)
240255

241-
":helptags ALL" should skip directories where "tags" cannot be written.
242-
(Matěj Cepl, #5026)
243-
244256
":bnext" in a help buffer is supposed to go to the next help buffer, but it
245257
goes to any buffer, and then :bnext skips help buffers, since they are
246258
unlisted. (#4478)
@@ -302,6 +314,8 @@ Does not build with MinGW out of the box:
302314
Crash when mixing matchadd and substitute()? (Max Christian Pohle, 2018 May
303315
13, #2910) Can't reproduce?
304316

317+
Display messed up with matchparen, wrapping and scrolling. (#5638)
318+
305319
Patch to configure BUILD_DATE for reproducible builds. (James McCoy, #513)
306320

307321
Patch to add MODIFIED_BY to MSVC build file. (Chen Lei, 2016 Nov 24, #1275)

runtime/doc/vim9.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*vim9.txt* For Vim version 8.2. Last change: 2020 Feb 21
1+
*vim9.txt* For Vim version 8.2. Last change: 2020 Feb 22
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar

runtime/pack/dist/opt/termdebug/plugin/termdebug.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"
33
" Author: Bram Moolenaar
44
" Copyright: Vim license applies, see ":help license"
5-
" Last Change: 2019 Dec 11
5+
" Last Change: 2020 Feb 19
66
"
77
" WORK IN PROGRESS - Only the basics work
88
" Note: On MS-Windows you need a recent version of gdb. The one included with

runtime/syntax/resolv.vim

+13-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
" Language: resolver configuration file
33
" Maintainer: Radu Dineiu <radu.dineiu@gmail.com>
44
" URL: https://raw.github.com/rid9/vim-resolv/master/resolv.vim
5-
" Last Change: 2013 May 21
6-
" Version: 1.0
5+
" Last Change: 2020 Feb 15
6+
" By: DJ Lucas
7+
" Version: 1.1
78
"
89
" Credits:
910
" David Necas (Yeti) <yeti@physics.muni.cz>
1011
" Stefano Zacchiroli <zack@debian.org>
12+
" DJ Lucas <dj@linuxfromscratch.org>
1113

1214
" quit when a syntax file was already loaded
1315
if exists("b:current_syntax")
@@ -31,6 +33,15 @@ syn match resolvHostname contained /\w\{-}\.[-0-9A-Za-z_\.]*/
3133

3234
" Particular
3335
syn match resolvIPNameserver contained /\%(\%(\d\{1,4}\.\)\{3}\d\{1,4}\%(\s\|$\)\)\+/ contains=@resolvIPCluster
36+
syn match resolvIPNameserver contained /\<\(\x\{1,4}:\)\{6}\(\x\{1,4}:\x\{1,4}\)\>/
37+
syn match resolvIPNameserver contained /\s\@<=::\(\(\x\{1,4}:\)\{,6}\x\{1,4}\)\>/
38+
syn match resolvIPNameserver contained /\<\(\x\{1,4}:\)\{1}:\(\(\x\{1,4}:\)\{,5}\x\{1,4}\)\>/
39+
syn match resolvIPNameserver contained /\<\(\x\{1,4}:\)\{2}:\(\(\x\{1,4}:\)\{,4}\x\{1,4}\)\>/
40+
syn match resolvIPNameserver contained /\<\(\x\{1,4}:\)\{3}:\(\(\x\{1,4}:\)\{,3}\x\{1,4}\)\>/
41+
syn match resolvIPNameserver contained /\<\(\x\{1,4}:\)\{4}:\(\(\x\{1,4}:\)\{,2}\x\{1,4}\)\>/
42+
syn match resolvIPNameserver contained /\<\(\x\{1,4}:\)\{5}:\(\(\x\{1,4}:\)\{,1}\x\{1,4}\)\>/
43+
syn match resolvIPNameserver contained /\<\(\x\{1,4}:\)\{6}:\x\{1,4}\>/
44+
syn match resolvIPNameserver contained /\<\(\x\{1,4}:\)\{1,7}:\(\s\|;\|$\)\@=/
3445
syn match resolvHostnameSearch contained /\%(\%([-0-9A-Za-z_]\+\.\)*[-0-9A-Za-z_]\+\.\?\%(\s\|$\)\)\+/
3546
syn match resolvIPNetmaskSortList contained /\%(\%(\d\{1,4}\.\)\{3}\d\{1,4}\%(\/\%(\%(\d\{1,4}\.\)\{,3}\d\{1,4}\)\)\?\%(\s\|$\)\)\+/ contains=resolvOperator,@resolvIPCluster
3647

runtime/tutor/tutor.pt

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ NOTA: Enquanto segue este tutorial, n
131131

132132
---> Há algum texto faltando nes
133133
Há algum texto faltando nesta linha.
134-
Há algum texto faltan
135-
---> Há algum texto faltando aqui.
134+
---> Há algum texto faltan
135+
Há algum texto faltando aqui.
136136

137137
5. Quando se sentir confortável adicionando texto, vá para a Lição 1.6.
138138

runtime/tutor/tutor.pt.utf-8

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ NOTA: Enquanto segue este tutorial, não tente memorizar, aprenda pelo uso.
131131

132132
---> Há algum texto faltando nes
133133
Há algum texto faltando nesta linha.
134-
Há algum texto faltan
135-
---> Há algum texto faltando aqui.
134+
---> Há algum texto faltan
135+
Há algum texto faltando aqui.
136136

137137
5. Quando se sentir confortável adicionando texto, vá para a Lição 1.6.
138138

src/Make_mvc.mak

+6-3
Original file line numberDiff line numberDiff line change
@@ -663,9 +663,6 @@ OPTFLAG = /Ox
663663
! if "$(OPTIMIZE)" != "SPACE"
664664
OPTFLAG = $(OPTFLAG) /GL
665665
! endif
666-
# Visual Studio 2005 has 'deprecated' many of the standard CRT functions
667-
CFLAGS_DEPR = /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE
668-
CFLAGS = $(CFLAGS) $(CFLAGS_DEPR)
669666
! endif
670667

671668
# (/Wp64 is deprecated in VC9 and generates an obnoxious warning.)
@@ -707,6 +704,12 @@ CFLAGS = $(CFLAGS) /Zl /MTd
707704
! endif
708705
!endif # DEBUG
709706

707+
!if $(MSVC_MAJOR) >= 8
708+
# Visual Studio 2005 has 'deprecated' many of the standard CRT functions
709+
CFLAGS_DEPR = /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE
710+
CFLAGS = $(CFLAGS) $(CFLAGS_DEPR)
711+
!endif
712+
710713
!include Make_all.mak
711714
!include testdir\Make_all.mak
712715

src/cmdhist.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ calc_hist_idx(int histype, int num)
389389
i += hislen;
390390
wrapped = TRUE;
391391
}
392-
if (hist[i].hisnum == num && hist[i].hisstr != NULL)
392+
if (i >= 0 && hist[i].hisnum == num && hist[i].hisstr != NULL)
393393
return i;
394394
}
395395
else if (-num <= hislen)

src/evalvars.c

+1
Original file line numberDiff line numberDiff line change
@@ -671,6 +671,7 @@ heredoc_get(exarg_T *eap, char_u *cmd)
671671
* ":let var ..= expr" assignment command.
672672
* ":let [var1, var2] = expr" unpack list.
673673
* ":let var =<< ..." heredoc
674+
* ":let var: string" Vim9 declaration
674675
*/
675676
void
676677
ex_let(exarg_T *eap)

0 commit comments

Comments
 (0)