Skip to content

Commit e49369c

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents edec8e7 + 4af1117 commit e49369c

140 files changed

Lines changed: 3692 additions & 804 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.

runtime/doc/autocmd.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*autocmd.txt* For Vim version 8.2. Last change: 2020 Jan 17
1+
*autocmd.txt* For Vim version 8.2. Last change: 2020 Jan 26
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar

runtime/doc/cmdline.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -933,8 +933,7 @@ These modifiers can be given, in this order:
933933
directory.
934934
:. Reduce file name to be relative to current directory, if
935935
possible. File name is unmodified if it is not below the
936-
current directory, but on MS-Windows the drive is removed if
937-
it is the current drive.
936+
current directory.
938937
For maximum shortness, use ":~:.".
939938
:h Head of the file name (the last component and any separators
940939
removed). Cannot be used with :e, :r or :t.

runtime/doc/eval.txt

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

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1808,7 +1808,9 @@ v:errors Errors found by assert functions, such as |assert_true()|.
18081808

18091809
*v:event* *event-variable*
18101810
v:event Dictionary containing information about the current
1811-
|autocommand|. The dictionary is emptied when the |autocommand|
1811+
|autocommand|. See the specific event for what it puts in
1812+
this dictionary.
1813+
The dictionary is emptied when the |autocommand|
18121814
finishes, please refer to |dict-identity| for how to get an
18131815
independent copy of it.
18141816

@@ -2858,6 +2860,7 @@ term_wait({buf} [, {time}]) Number wait for screen to be updated
28582860
test_alloc_fail({id}, {countdown}, {repeat})
28592861
none make memory allocation fail
28602862
test_autochdir() none enable 'autochdir' during startup
2863+
test_clear_search_pat() none clears the last used search pattern
28612864
test_feedinput({string}) none add key sequence to input buffer
28622865
test_garbagecollect_now() none free memory right now for testing
28632866
test_garbagecollect_soon() none free memory soon for testing
@@ -3467,6 +3470,7 @@ chdir({dir}) *chdir()*
34673470
directory (|:tcd|) then changes the tabpage local
34683471
directory.
34693472
- Otherwise, changes the global directory.
3473+
{dir} must be a String.
34703474
If successful, returns the previous working directory. Pass
34713475
this to another chdir() to restore the directory.
34723476
On failure, returns an empty string.
@@ -5676,7 +5680,7 @@ getwininfo([{winid}]) *getwininfo()*
56765680
GetWinnr()->getwininfo()
56775681
56785682
getwinpos([{timeout}]) *getwinpos()*
5679-
The result is a list with two numbers, the result of
5683+
The result is a List with two numbers, the result of
56805684
|getwinposx()| and |getwinposy()| combined:
56815685
[x-pos, y-pos]
56825686
{timeout} can be used to specify how long to wait in msec for
@@ -10473,6 +10477,7 @@ winline() The result is a Number, which is the screen line of the cursor
1047310477
*winnr()*
1047410478
winnr([{arg}]) The result is a Number, which is the number of the current
1047510479
window. The top window has number 1.
10480+
Returns zero for a popup window.
1047610481

1047710482
The optional argument {arg} supports the following values:
1047810483
$ the number of the last window (the window

runtime/doc/evim-it.1

100755100644
File mode changed.

runtime/doc/insert.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*insert.txt* For Vim version 8.2. Last change: 2020 Jan 04
1+
*insert.txt* For Vim version 8.2. Last change: 2020 Jan 26
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1079,7 +1079,8 @@ If you want to suppress the warning message for an empty result, return
10791079

10801080
Other items are ignored.
10811081

1082-
For acting upon end of completion, see the |CompleteDone| autocommand event.
1082+
For acting upon end of completion, see the |CompleteDonePre| and
1083+
|CompleteDone| autocommand event.
10831084

10841085
For example, the function can contain this: >
10851086
let matches = ... list of words ...

runtime/doc/popup.txt

Lines changed: 18 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: 2019 Nov 30
1+
*popup.txt* For Vim version 8.2. Last change: 2020 Feb 03
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -11,6 +11,7 @@ Displaying text in a floating window. *popup* *popup-window* *popupwin*
1111
Window position and size |popup-position|
1212
Closing the popup window |popup-close|
1313
Popup buffer and window |popup-buffer|
14+
Terminal in popup window |popup-terminal|
1415
2. Functions |popup-functions|
1516
Details |popup-function-details|
1617
3. Usage |popup-usage|
@@ -140,6 +141,22 @@ And options can be set on the buffer with `setbufvar()`, e.g.: >
140141
You can also use `win_execute()` with a ":setlocal" command.
141142

142143

144+
TERMINAL IN POPUP WINDOW *popup-terminal*
145+
146+
A special case is running a terminal in a popup window. Many rules are then
147+
different: *E863*
148+
- The popup window always has focus, it is not possible to switch to another
149+
window.
150+
- When the job ends, the popup window closes.
151+
- The default Pmenu color is only used for the border and padding. To change
152+
the color of the terminal itself set 'wincolor'.
153+
154+
To run a terminal in a popup window, first create the terminal hidden. Then
155+
pass the buffer number to popup_create(). Example: >
156+
let buf = term_start(['picker', 'Something'], #{hidden: 1, term_finish: 'close'})
157+
let winid = popup_create(buf, #{minwidth: 50, minheight: 20})
158+
set wincolor=Search
159+
143160
==============================================================================
144161
2. Functions *popup-functions*
145162

runtime/doc/tags

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4725,6 +4725,7 @@ E858 eval.txt /*E858*
47254725
E859 eval.txt /*E859*
47264726
E86 windows.txt /*E86*
47274727
E862 eval.txt /*E862*
4728+
E863 popup.txt /*E863*
47284729
E864 pattern.txt /*E864*
47294730
E865 pattern.txt /*E865*
47304731
E866 pattern.txt /*E866*
@@ -8452,6 +8453,7 @@ popup-menu-added version5.txt /*popup-menu-added*
84528453
popup-position popup.txt /*popup-position*
84538454
popup-props popup.txt /*popup-props*
84548455
popup-scrollbar popup.txt /*popup-scrollbar*
8456+
popup-terminal popup.txt /*popup-terminal*
84558457
popup-textprop-pos popup.txt /*popup-textprop-pos*
84568458
popup-usage popup.txt /*popup-usage*
84578459
popup-window popup.txt /*popup-window*

runtime/doc/tagsrch.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*tagsrch.txt* For Vim version 8.2. Last change: 2019 Dec 27
1+
*tagsrch.txt* For Vim version 8.2. Last change: 2020 Jan 30
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -903,8 +903,8 @@ The following is a hypothetical example of a function used for 'tagfunc'. It
903903
uses the output of |taglist()| to generate the result: a list of tags in the
904904
inverse order of file names.
905905
>
906-
function! TagFunc(pattern, flags, info)
907-
function! CompareFilenames(item1, item2)
906+
function TagFunc(pattern, flags, info)
907+
function CompareFilenames(item1, item2)
908908
let f1 = a:item1['filename']
909909
let f2 = a:item2['filename']
910910
return f1 >=# f2 ?

runtime/doc/terminal.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*terminal.txt* For Vim version 8.2. Last change: 2020 Jan 04
1+
*terminal.txt* For Vim version 8.2. Last change: 2020 Jan 30
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1025,7 +1025,7 @@ Writing a screen dump test for Vim ~
10251025
For an example see the Test_syntax_c() function in
10261026
src/testdir/test_syntax.vim. The main parts are:
10271027
- Write a file you want to test with. This is useful for testing syntax
1028-
highlighting. You can also start Vim with en empty buffer.
1028+
highlighting. You can also start Vim with an empty buffer.
10291029
- Run Vim in a terminal with a specific size. The default is 20 lines of 75
10301030
characters. This makes sure the dump is always this size. The function
10311031
RunVimInTerminal() takes care of this. Pass it the arguments for the Vim

runtime/doc/testing.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ 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+
5560
test_feedinput({string}) *test_feedinput()*
5661
Characters in {string} are queued for processing as if they
5762
were typed by the user. This uses a low level input buffer.

0 commit comments

Comments
 (0)