Skip to content

Commit 5fa6d84

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 1ff2ec0 + 1fa8d2c commit 5fa6d84

135 files changed

Lines changed: 4003 additions & 2103 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.

Filelist

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ SRC_ALL = \
127127
src/termlib.c \
128128
src/testing.c \
129129
src/textprop.c \
130+
src/time.c \
130131
src/ui.c \
131132
src/undo.c \
132133
src/usercmd.c \
@@ -275,6 +276,7 @@ SRC_ALL = \
275276
src/proto/termlib.pro \
276277
src/proto/testing.pro \
277278
src/proto/textprop.pro \
279+
src/proto/time.pro \
278280
src/proto/ui.pro \
279281
src/proto/undo.pro \
280282
src/proto/usercmd.pro \
@@ -529,7 +531,6 @@ SRC_DOS = \
529531
src/uninstall.c \
530532
src/vim.def \
531533
src/vim.rc \
532-
src/vimio.h \
533534
src/gvim.exe.mnf \
534535
src/vimrun.c \
535536
src/xpm_w32.c \

nsis/gvim.nsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Unicode true
3939
# Uncomment the next line if you want to include VisVim extension:
4040
#!define HAVE_VIS_VIM
4141

42-
# Comment the following line to create a multilanguage installer:
42+
# Comment the following line to create an English-only installer:
4343
!define HAVE_MULTI_LANG
4444

4545
# Uncomment the next line if you want to create a 64-bit installer.

runtime/doc/change.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*change.txt* For Vim version 8.2. Last change: 2019 Sep 28
1+
*change.txt* For Vim version 8.2. Last change: 2020 Feb 09
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -636,6 +636,8 @@ For other systems the tmpnam() library function is used.
636636
|cmdline-ranges|.
637637

638638
See |:s_flags| for [flags].
639+
The delimiter doesn't need to be /, see
640+
|pattern-delimiter|.
639641

640642
:[range]s[ubstitute] [flags] [count]
641643
:[range]&[&][flags] [count] *:&*
@@ -775,7 +777,7 @@ This deletes "TESTING" from all lines, but only one per line.
775777
For compatibility with Vi these two exceptions are allowed:
776778
"\/{string}/" and "\?{string}?" do the same as "//{string}/r".
777779
"\&{string}&" does the same as "//{string}/".
778-
*E146*
780+
*pattern-delimiter* *E146*
779781
Instead of the '/' which surrounds the pattern and replacement string, you
780782
can use any other single-byte character, but not an alphanumeric character,
781783
'\', '"' or '|'. This is useful if you want to include a '/' in the search

runtime/doc/eval.txt

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 8.2. Last change: 2020 Feb 03
1+
*eval.txt* For Vim version 8.2. Last change: 2020 Feb 14
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2426,6 +2426,7 @@ deletebufline({expr}, {first} [, {last}])
24262426
did_filetype() Number |TRUE| if FileType autocmd event used
24272427
diff_filler({lnum}) Number diff filler lines about {lnum}
24282428
diff_hlID({lnum}, {col}) Number diff highlighting at {lnum}/{col}
2429+
echoraw({expr}) none output {expr} as-is
24292430
empty({expr}) Number |TRUE| if {expr} is empty
24302431
environ() Dict return environment variables
24312432
escape({string}, {chars}) String escape {chars} in {string} with '\'
@@ -2860,7 +2861,6 @@ term_wait({buf} [, {time}]) Number wait for screen to be updated
28602861
test_alloc_fail({id}, {countdown}, {repeat})
28612862
none make memory allocation fail
28622863
test_autochdir() none enable 'autochdir' during startup
2863-
test_clear_search_pat() none clears the last used search pattern
28642864
test_feedinput({string}) none add key sequence to input buffer
28652865
test_garbagecollect_now() none free memory right now for testing
28662866
test_garbagecollect_soon() none free memory soon for testing
@@ -2879,6 +2879,7 @@ test_refcount({expr}) Number get the reference count of {expr}
28792879
test_scrollbar({which}, {value}, {dragging})
28802880
none scroll in the GUI for testing
28812881
test_setmouse({row}, {col}) none set the mouse position for testing
2882+
test_srand_seed([seed]) none set seed for testing srand()
28822883
test_settime({expr}) none set current time for testing
28832884
timer_info([{id}]) List information about timers
28842885
timer_pause({id}, {pause}) none pause or unpause a timer
@@ -2911,6 +2912,7 @@ win_id2win({expr}) Number get window nr from window ID
29112912
win_screenpos({nr}) List get screen position of window {nr}
29122913
win_splitmove({nr}, {target} [, {options}])
29132914
Number move window {nr} to split of {target}
2915+
win_type([{nr}]) String type of window {nr}
29142916
winbufnr({nr}) Number buffer number of window {nr}
29152917
wincol() Number window column of the cursor
29162918
winheight({nr}) Number height of window {nr}
@@ -3956,6 +3958,17 @@ diff_hlID({lnum}, {col}) *diff_hlID()*
39563958
Can also be used as a |method|: >
39573959
GetLnum()->diff_hlID(col)
39583960
3961+
3962+
echoraw({expr}) *echoraw()*
3963+
Output {expr} as-is, including unprintable characters. This
3964+
can be used to output a terminal code. For example, to disable
3965+
modifyOtherKeys: >
3966+
call echoraw(&t_TE)
3967+
< and to enable it again: >
3968+
call echoraw(&t_TI)
3969+
< Use with care, you can mess up the terminal this way.
3970+
3971+
39593972
empty({expr}) *empty()*
39603973
Return the Number 1 if {expr} is empty, zero otherwise.
39613974
- A |List| or |Dictionary| is empty when it does not have any
@@ -10340,6 +10353,23 @@ win_getid([{win} [, {tab}]]) *win_getid()*
1034010353
Can also be used as a |method|: >
1034110354
GetWinnr()->win_getid()
1034210355
10356+
10357+
win_gettype([{nr}]) *win_gettype()*
10358+
Return the type of the window:
10359+
"popup" popup window |popup|
10360+
"command" command-line window |cmdwin|
10361+
(empty) normal window
10362+
"unknown" window {nr} not found
10363+
10364+
When {nr} is omitted return the type of the current window.
10365+
When {nr} is given return the type of this window by number or
10366+
|window-ID|.
10367+
10368+
Also see the 'buftype' option. When running a terminal in a
10369+
popup window then 'buftype' is "terminal" and win_gettype()
10370+
returns "popup".
10371+
10372+
1034310373
win_gotoid({expr}) *win_gotoid()*
1034410374
Go to window with ID {expr}. This may also change the current
1034510375
tabpage.
@@ -10397,6 +10427,7 @@ win_splitmove({nr}, {target} [, {options}]) *win_splitmove()*
1039710427
Can also be used as a |method|: >
1039810428
GetWinid()->win_splitmove(target)
1039910429
<
10430+
1040010431
*winbufnr()*
1040110432
winbufnr({nr}) The result is a Number, which is the number of the buffer
1040210433
associated with window {nr}. {nr} can be the window number or

runtime/doc/options.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 8.2. Last change: 2020 Jan 24
1+
*options.txt* For Vim version 8.2. Last change: 2020 Feb 14
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1393,6 +1393,7 @@ A jump table for the options with a short description can be found at |Q_op|.
13931393

13941394
This option is used together with 'bufhidden' and 'swapfile' to
13951395
specify special kinds of buffers. See |special-buffers|.
1396+
Also see |win_gettype()|, which returns the type of the window.
13961397

13971398
Be careful with changing this option, it can have many side effects!
13981399

runtime/doc/popup.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*popup.txt* For Vim version 8.2. Last change: 2020 Feb 03
1+
*popup.txt* For Vim version 8.2. Last change: 2020 Feb 05
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -402,6 +402,7 @@ popup_hide({id}) *popup_hide()*
402402
hidden.
403403
If window {id} does not exist nothing happens. If window {id}
404404
exists but is not a popup window an error is given. *E993*
405+
If popup window {id} contains a terminal an error is given.
405406

406407
Can also be used as a |method|: >
407408
GetPopup()->popup_hide()

runtime/doc/starting.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*starting.txt* For Vim version 8.2. Last change: 2020 Jan 20
1+
*starting.txt* For Vim version 8.2. Last change: 2020 Feb 04
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -58,10 +58,12 @@ filename One or more file names. The first one will be the current
5858
that is read from stdin. The commands that would normally be
5959
read from stdin will now be read from stderr. Example: >
6060
find . -name "*.c" -print | vim -
61-
< The buffer will not be marked as modified, so that it's easy
62-
to exit. Be careful to mark it as modified if you don't want
63-
to accidentally lose it. Example: >
64-
ls | view -
61+
62+
< The buffer will be marked as modified, so that you are
63+
reminded to save the text when trying to exit. If you don't
64+
like that, put this these lines in your vimrc: >
65+
" Don't set 'modified' when reading from stdin
66+
au StdinReadPost * set nomodified
6567
<
6668
Starting in Ex mode: >
6769
ex -

runtime/doc/tabpage.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*tabpage.txt* For Vim version 8.2. Last change: 2019 May 05
1+
*tabpage.txt* For Vim version 8.2. Last change: 2020 Feb 06
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -138,7 +138,7 @@ something else.
138138
:+tabclose " close the next tab page
139139
:1tabclose " close the first tab page
140140
:$tabclose " close the last tab page
141-
:tabclose -2 " close the two previous tab page
141+
:tabclose -2 " close the 2nd previous tab page
142142
:tabclose + " close the next tab page
143143
:tabclose 3 " close the third tab page
144144
:tabclose $ " close the last tab page

runtime/doc/tags

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2364,6 +2364,8 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
23642364
:diffupdate diff.txt /*:diffupdate*
23652365
:dig digraph.txt /*:dig*
23662366
:digraphs digraph.txt /*:digraphs*
2367+
:disa vim9.txt /*:disa*
2368+
:disassemble vim9.txt /*:disassemble*
23672369
:display change.txt /*:display*
23682370
:dj tagsrch.txt /*:dj*
23692371
:djump tagsrch.txt /*:djump*
@@ -6192,6 +6194,7 @@ dtd2vim insert.txt /*dtd2vim*
61926194
dying-variable eval.txt /*dying-variable*
61936195
e motion.txt /*e*
61946196
easy starting.txt /*easy*
6197+
echoraw() eval.txt /*echoraw()*
61956198
echospace-variable eval.txt /*echospace-variable*
61966199
edit-a-file editing.txt /*edit-a-file*
61976200
edit-binary editing.txt /*edit-binary*
@@ -8370,6 +8373,7 @@ patches-8.2 version8.txt /*patches-8.2*
83708373
pathshorten() eval.txt /*pathshorten()*
83718374
pattern pattern.txt /*pattern*
83728375
pattern-atoms pattern.txt /*pattern-atoms*
8376+
pattern-delimiter change.txt /*pattern-delimiter*
83738377
pattern-multi-byte pattern.txt /*pattern-multi-byte*
83748378
pattern-multi-items pattern.txt /*pattern-multi-items*
83758379
pattern-overview pattern.txt /*pattern-overview*
@@ -9612,6 +9616,7 @@ test_refcount() testing.txt /*test_refcount()*
96129616
test_scrollbar() testing.txt /*test_scrollbar()*
96139617
test_setmouse() testing.txt /*test_setmouse()*
96149618
test_settime() testing.txt /*test_settime()*
9619+
test_srand_seed() testing.txt /*test_srand_seed()*
96159620
testing testing.txt /*testing*
96169621
testing-support testing.txt /*testing-support*
96179622
testing-variable eval.txt /*testing-variable*
@@ -10179,6 +10184,7 @@ win32s os_win32.txt /*win32s*
1017910184
win_execute() eval.txt /*win_execute()*
1018010185
win_findbuf() eval.txt /*win_findbuf()*
1018110186
win_getid() eval.txt /*win_getid()*
10187+
win_gettype() eval.txt /*win_gettype()*
1018210188
win_gotoid() eval.txt /*win_gotoid()*
1018310189
win_id2tabwin() eval.txt /*win_id2tabwin()*
1018410190
win_id2win() eval.txt /*win_id2win()*

runtime/doc/testing.txt

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*testing.txt* For Vim version 8.2. Last change: 2019 Sep 08
1+
*testing.txt* For Vim version 8.2. Last change: 2020 Feb 08
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -52,11 +52,6 @@ test_autochdir() *test_autochdir()*
5252
startup has finished.
5353

5454

55-
test_clear_search_pat() *test_clear_search_pat()*
56-
Clears the last used search pattern (|/|) and the substitute
57-
pattern (|:s|). This is useful for testing conditions where
58-
these patterns are not set previously.
59-
6055
test_feedinput({string}) *test_feedinput()*
6156
Characters in {string} are queued for processing as if they
6257
were typed by the user. This uses a low level input buffer.
@@ -210,7 +205,6 @@ test_setmouse({row}, {col}) *test_setmouse()*
210205
call test_setmouse(4, 20)
211206
call feedkeys("\<LeftMouse>", "xt")
212207
213-
214208
test_settime({expr}) *test_settime()*
215209
Set the time Vim uses internally. Currently only used for
216210
timestamps in the history, as they are used in viminfo, and
@@ -223,6 +217,10 @@ test_settime({expr}) *test_settime()*
223217
Can also be used as a |method|: >
224218
GetTime()->test_settime()
225219
220+
test_srand_seed([seed]) *test_srand_seed()*
221+
When [seed] is given this sets the seed value used by
222+
`srand()`. When omitted the test seed is removed.
223+
226224
==============================================================================
227225
3. Assert functions *assert-functions-details*
228226

0 commit comments

Comments
 (0)