Skip to content

Commit 8fa50d1

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 6984f4e + b60d851 commit 8fa50d1

119 files changed

Lines changed: 4210 additions & 2447 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ src/auto/pathdef.c
3535
*.RES
3636
vim*.dll
3737
vim*.lib
38-
src/pathdef.c
38+
src/dobj*/pathdef.c
39+
src/gobj*/pathdef.c
40+
src/obj*/pathdef.c
3941
src/Obj*/pathdef.c
4042
gvimext.dll
4143
gvimext.lib

.hgignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ src/auto/pathdef.c
3737
*.RES
3838
vim*.dll
3939
vim*.lib
40-
src/pathdef.c
40+
src/dobj*/pathdef.c
41+
src/gobj*/pathdef.c
42+
src/obj*/pathdef.c
4143
src/Obj*/pathdef.c
4244
gvimext.dll
4345
gvimext.lib

Filelist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ SRC_ALL = \
124124
src/testdir/shared.vim \
125125
src/testdir/screendump.vim \
126126
src/testdir/view_util.vim \
127+
src/testdir/term_util.vim \
127128
src/testdir/setup.vim \
128129
src/testdir/gui_init.vim \
129130
src/testdir/setup_gui.vim \

runtime/doc/autocmd.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*autocmd.txt* For Vim version 8.1. Last change: 2019 Jun 15
1+
*autocmd.txt* For Vim version 8.1. Last change: 2019 Jun 22
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -876,14 +876,13 @@ OptionSet After setting an option. The pattern is
876876
|<amatch>| indicates what option has been set.
877877

878878
|v:option_type| indicates whether it's global
879-
or local scoped
879+
or local scoped.
880880
|v:option_command| indicates what type of
881881
set/let command was used (follow the tag to
882882
see the table).
883883
|v:option_new| indicates the newly set value.
884-
|v:option_oldlocal| hass the old local value.
885-
|v:option_oldglobal| hass the old global
886-
value
884+
|v:option_oldlocal| has the old local value.
885+
|v:option_oldglobal| has the old global value.
887886
|v:option_old| indicates the old option value.
888887

889888
|v:option_oldlocal| is only set when |:set|

runtime/doc/eval.txt

Lines changed: 47 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 8.1. Last change: 2019 Jun 10
1+
*eval.txt* For Vim version 8.1. Last change: 2019 Jun 22
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2183,7 +2183,7 @@ v:val Value of the current item of a |List| or |Dictionary|. Only
21832183

21842184
*v:version* *version-variable*
21852185
v:version Version number of Vim: Major version number times 100 plus
2186-
minor version number. Version 5.0 is 500. Version 5.1 (5.01)
2186+
minor version number. Version 5.0 is 500. Version 5.1
21872187
is 501. Read-only. "version" also works, for backwards
21882188
compatibility, unless |scriptversion| is 3 or higher.
21892189
Use |has()| to check if a certain patch was included, e.g.: >
@@ -2193,10 +2193,10 @@ v:version Version number of Vim: Major version number times 100 plus
21932193
completely different.
21942194

21952195
*v:versionlong* *versionlong-variable*
2196-
v:versionlong Like v:version, but also including the patchlevel. Version
2197-
8.1 with patch 1234 has value 8011234. This can be used like
2198-
this: >
2199-
if v:versionlong >= 8011234
2196+
v:versionlong Like v:version, but also including the patchlevel in the last
2197+
four digits. Version 8.1 with patch 123 has value 8010123.
2198+
This can be used like this: >
2199+
if v:versionlong >= 8010123
22002200
< However, if there are gaps in the list of patches included
22012201
this will not work well. This can happen if a recent patch
22022202
was included into an older version, e.g. for a security fix.
@@ -2741,6 +2741,7 @@ test_alloc_fail({id}, {countdown}, {repeat})
27412741
test_autochdir() none enable 'autochdir' during startup
27422742
test_feedinput({string}) none add key sequence to input buffer
27432743
test_garbagecollect_now() none free memory right now for testing
2744+
test_garbagecollect_soon() none free memory soon for testing
27442745
test_getvalue({string}) any get value of an internal variable
27452746
test_ignore_error({expr}) none ignore a specific error
27462747
test_null_blob() Blob null value for testing
@@ -8123,10 +8124,9 @@ setbufline({expr}, {lnum}, {text}) *setbufline()*
81238124

81248125
{lnum} is used like with |setline()|.
81258126
This works like |setline()| for the specified buffer.
8126-
On success 0 is returned, on failure 1 is returned.
81278127

8128-
If {expr} is not a valid buffer or {lnum} is not valid, an
8129-
error message is given.
8128+
When {expr} is not a valid buffer or {lnum} is not valid then
8129+
1 is returned. On success 0 is returned.
81308130

81318131
setbufvar({expr}, {varname}, {val}) *setbufvar()*
81328132
Set option or local variable {varname} in buffer {expr} to
@@ -8884,7 +8884,7 @@ sort({list} [, {func} [, {dict}]]) *sort()* *E702*
88848884
<
88858885
sound_clear() *sound_clear()*
88868886
Stop playing all sounds.
8887-
{only available when compiled with the +sound feature}
8887+
{only available when compiled with the |+sound| feature}
88888888

88898889
*sound_playevent()*
88908890
sound_playevent({name} [, {callback}])
@@ -8893,20 +8893,25 @@ sound_playevent({name} [, {callback}])
88938893
are used. On Ubuntu they may be found in
88948894
/usr/share/sounds/freedesktop/stereo. Example: >
88958895
call sound_playevent('bell')
8896+
< On MS-Windows, {name} can be SystemAsterisk, SystemDefault,
8897+
SystemExclamation, SystemExit, SystemHand, SystemQuestion,
8898+
SystemStart, SystemWelcome, etc.
88968899

8897-
< When {callback} is specified it is invoked when the sound is
8900+
When {callback} is specified it is invoked when the sound is
88988901
finished. The first argument is the sound ID, the second
88998902
argument is the status:
89008903
0 sound was played to the end
89018904
1 sound was interrupted
8902-
2 error occured after sound started
8905+
2 error occurred after sound started
89038906
Example: >
89048907
func Callback(id, status)
89058908
echomsg "sound " .. a:id .. " finished with " .. a:status
89068909
endfunc
89078910
call sound_playevent('bell', 'Callback')
89088911

8909-
< Returns the sound ID, which can be passed to `sound_stop()`.
8912+
< MS-Windows: {callback} doesn't work for this function.
8913+
8914+
Returns the sound ID, which can be passed to `sound_stop()`.
89108915
Returns zero if the sound could not be played.
89118916
{only available when compiled with the |+sound| feature}
89128917

@@ -8922,6 +8927,10 @@ sound_playfile({path} [, {callback}])
89228927
sound_stop({id}) *sound_stop()*
89238928
Stop playing sound {id}. {id} must be previously returned by
89248929
`sound_playevent()` or `sound_playfile()`.
8930+
8931+
On MS-Windows, this does not work for event sound started by
8932+
`sound_playevent()`. To stop event sounds, use `sound_clear()`.
8933+
89258934
{only available when compiled with the |+sound| feature}
89268935

89278936
*soundfold()*
@@ -10001,6 +10010,10 @@ test_garbagecollect_now() *test_garbagecollect_now()*
1000110010
internally, and |v:testing| must have been set before calling
1000210011
any function.
1000310012

10013+
test_garbagecollect_soon() *test_garbagecollect_soon()*
10014+
Set the flag to call the garbagecollector as if in the main
10015+
loop. Only to be used in tests.
10016+
1000410017
test_getvalue({name}) *test_getvalue()*
1000510018
Get the value of an internal variable. These values for
1000610019
{name} are supported:
@@ -10064,6 +10077,8 @@ test_override({name}, {val}) *test_override()*
1006410077
fallback to the old engine
1006510078
no_query_mouse do not query the mouse position for "dec"
1006610079
terminals
10080+
no_wait_return set the "no_wait_return" flag. Not restored
10081+
with "ALL".
1006710082
ALL clear all overrides ({val} is not used)
1006810083

1006910084
"starting" is to be used when a test should behave like
@@ -11555,13 +11570,24 @@ text...
1155511570
If {marker} is not supplied, then "." is used as the
1155611571
default marker.
1155711572

11558-
Any white space characters in the lines of text are
11559-
preserved. If "trim" is specified before {marker},
11560-
then all the leading indentation exactly matching the
11561-
leading indentation before `let` is stripped from the
11562-
input lines and the line containing {marker}. Note
11563-
that the difference between space and tab matters
11564-
here.
11573+
Without "trim" any white space characters in the lines
11574+
of text are preserved. If "trim" is specified before
11575+
{marker}, then indentation is stripped so you can do: >
11576+
let text =<< trim END
11577+
if ok
11578+
echo 'done'
11579+
endif
11580+
END
11581+
< Results in: ["if ok", " echo 'done'", "endif"]
11582+
The marker must line up with "let" and the indentation
11583+
of the first line is removed from all the text lines.
11584+
Specifically: all the leading indentation exactly
11585+
matching the leading indentation of the first
11586+
non-empty text line is stripped from the input lines.
11587+
All leading indentation exactly matching the leading
11588+
indentation before `let` is stripped from the line
11589+
containing {marker}. Note that the difference between
11590+
space and tab matters here.
1156511591

1156611592
If {var-name} didn't exist yet, it is created.
1156711593
Cannot be followed by another command, but can be
@@ -11597,7 +11623,6 @@ text...
1159711623
# Number
1159811624
* Funcref
1159911625

11600-
1160111626
:unl[et][!] {name} ... *:unlet* *:unl* *E108* *E795*
1160211627
Remove the internal variable {name}. Several variable
1160311628
names can be given, they are all removed. The name
@@ -11642,7 +11667,7 @@ text...
1164211667
< This is useful if you want to make sure the variable
1164311668
is not modified.
1164411669
*E995*
11645-
|:const| does not allow to for changing a variable. >
11670+
|:const| does not allow to for changing a variable: >
1164611671
:let x = 1
1164711672
:const x = 2 " Error!
1164811673
< *E996*

runtime/doc/index.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*index.txt* For Vim version 8.1. Last change: 2019 Jun 09
1+
*index.txt* For Vim version 8.1. Last change: 2019 Jun 16
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1241,6 +1241,7 @@ tag command action ~
12411241
|:compiler| :comp[iler] do settings for a specific compiler
12421242
|:continue| :con[tinue] go back to :while
12431243
|:confirm| :conf[irm] prompt user when confirmation required
1244+
|:const| :cons[t] create a variable as a constant
12441245
|:copen| :cope[n] open quickfix window
12451246
|:cprevious| :cp[revious] go to previous error
12461247
|:cpfile| :cpf[ile] go to last error in previous file

runtime/doc/intro.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*intro.txt* For Vim version 8.1. Last change: 2019 May 07
1+
*intro.txt* For Vim version 8.1. Last change: 2019 Jun 12
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -65,7 +65,7 @@ contain links to the most recent version of Vim. The FAQ is a list of
6565
Frequently Asked Questions. Read this if you have problems.
6666

6767
Vim home page: https://www.vim.org/
68-
Vim FAQ: https://vimhelp.appspot.com/vim_faq.txt.html
68+
Vim FAQ: https://vimhelp.org/vim_faq.txt.html
6969
Downloading: https://www.vim.org/download.php
7070

7171

runtime/doc/options.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 8.1. Last change: 2019 May 25
1+
*options.txt* For Vim version 8.1. Last change: 2019 Jun 22
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -6952,6 +6952,8 @@ A jump table for the options with a short description can be found at |Q_op|.
69526952
"auto" only when there is a sign to display
69536953
"no" never
69546954
"yes" always
6955+
"number" display signs in the 'number' column. If the number
6956+
column is not present, then behaves like "auto".
69556957

69566958

69576959
*'smartcase'* *'scs'* *'nosmartcase'* *'noscs'*

0 commit comments

Comments
 (0)