Skip to content

Commit

Permalink
Merge remote-tracking branch 'vim/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
ychin committed Feb 6, 2020
2 parents edec8e7 + 4af1117 commit e49369c
Show file tree
Hide file tree
Showing 140 changed files with 3,692 additions and 804 deletions.
2 changes: 1 addition & 1 deletion runtime/doc/autocmd.txt
@@ -1,4 +1,4 @@
*autocmd.txt* For Vim version 8.2. Last change: 2020 Jan 17
*autocmd.txt* For Vim version 8.2. Last change: 2020 Jan 26


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down
3 changes: 1 addition & 2 deletions runtime/doc/cmdline.txt
Expand Up @@ -933,8 +933,7 @@ These modifiers can be given, in this order:
directory.
:. Reduce file name to be relative to current directory, if
possible. File name is unmodified if it is not below the
current directory, but on MS-Windows the drive is removed if
it is the current drive.
current directory.
For maximum shortness, use ":~:.".
:h Head of the file name (the last component and any separators
removed). Cannot be used with :e, :r or :t.
Expand Down
11 changes: 8 additions & 3 deletions runtime/doc/eval.txt
@@ -1,4 +1,4 @@
*eval.txt* For Vim version 8.2. Last change: 2020 Jan 19
*eval.txt* For Vim version 8.2. Last change: 2020 Feb 03


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

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

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

The optional argument {arg} supports the following values:
$ the number of the last window (the window
Expand Down
Empty file modified runtime/doc/evim-it.1 100755 → 100644
Empty file.
5 changes: 3 additions & 2 deletions runtime/doc/insert.txt
@@ -1,4 +1,4 @@
*insert.txt* For Vim version 8.2. Last change: 2020 Jan 04
*insert.txt* For Vim version 8.2. Last change: 2020 Jan 26


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

Other items are ignored.

For acting upon end of completion, see the |CompleteDone| autocommand event.
For acting upon end of completion, see the |CompleteDonePre| and
|CompleteDone| autocommand event.

For example, the function can contain this: >
let matches = ... list of words ...
Expand Down
19 changes: 18 additions & 1 deletion runtime/doc/popup.txt
@@ -1,4 +1,4 @@
*popup.txt* For Vim version 8.2. Last change: 2019 Nov 30
*popup.txt* For Vim version 8.2. Last change: 2020 Feb 03


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


TERMINAL IN POPUP WINDOW *popup-terminal*

A special case is running a terminal in a popup window. Many rules are then
different: *E863*
- The popup window always has focus, it is not possible to switch to another
window.
- When the job ends, the popup window closes.
- The default Pmenu color is only used for the border and padding. To change
the color of the terminal itself set 'wincolor'.

To run a terminal in a popup window, first create the terminal hidden. Then
pass the buffer number to popup_create(). Example: >
let buf = term_start(['picker', 'Something'], #{hidden: 1, term_finish: 'close'})
let winid = popup_create(buf, #{minwidth: 50, minheight: 20})
set wincolor=Search
==============================================================================
2. Functions *popup-functions*

Expand Down
2 changes: 2 additions & 0 deletions runtime/doc/tags
Expand Up @@ -4725,6 +4725,7 @@ E858 eval.txt /*E858*
E859 eval.txt /*E859*
E86 windows.txt /*E86*
E862 eval.txt /*E862*
E863 popup.txt /*E863*
E864 pattern.txt /*E864*
E865 pattern.txt /*E865*
E866 pattern.txt /*E866*
Expand Down Expand Up @@ -8452,6 +8453,7 @@ popup-menu-added version5.txt /*popup-menu-added*
popup-position popup.txt /*popup-position*
popup-props popup.txt /*popup-props*
popup-scrollbar popup.txt /*popup-scrollbar*
popup-terminal popup.txt /*popup-terminal*
popup-textprop-pos popup.txt /*popup-textprop-pos*
popup-usage popup.txt /*popup-usage*
popup-window popup.txt /*popup-window*
Expand Down
6 changes: 3 additions & 3 deletions runtime/doc/tagsrch.txt
@@ -1,4 +1,4 @@
*tagsrch.txt* For Vim version 8.2. Last change: 2019 Dec 27
*tagsrch.txt* For Vim version 8.2. Last change: 2020 Jan 30


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -903,8 +903,8 @@ The following is a hypothetical example of a function used for 'tagfunc'. It
uses the output of |taglist()| to generate the result: a list of tags in the
inverse order of file names.
>
function! TagFunc(pattern, flags, info)
function! CompareFilenames(item1, item2)
function TagFunc(pattern, flags, info)
function CompareFilenames(item1, item2)
let f1 = a:item1['filename']
let f2 = a:item2['filename']
return f1 >=# f2 ?
Expand Down
4 changes: 2 additions & 2 deletions runtime/doc/terminal.txt
@@ -1,4 +1,4 @@
*terminal.txt* For Vim version 8.2. Last change: 2020 Jan 04
*terminal.txt* For Vim version 8.2. Last change: 2020 Jan 30


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -1025,7 +1025,7 @@ Writing a screen dump test for Vim ~
For an example see the Test_syntax_c() function in
src/testdir/test_syntax.vim. The main parts are:
- Write a file you want to test with. This is useful for testing syntax
highlighting. You can also start Vim with en empty buffer.
highlighting. You can also start Vim with an empty buffer.
- Run Vim in a terminal with a specific size. The default is 20 lines of 75
characters. This makes sure the dump is always this size. The function
RunVimInTerminal() takes care of this. Pass it the arguments for the Vim
Expand Down
5 changes: 5 additions & 0 deletions runtime/doc/testing.txt
Expand Up @@ -52,6 +52,11 @@ test_autochdir() *test_autochdir()*
startup has finished.


test_clear_search_pat() *test_clear_search_pat()*
Clears the last used search pattern (|/|) and the substitute
pattern (|:s|). This is useful for testing conditions where
these patterns are not set previously.

test_feedinput({string}) *test_feedinput()*
Characters in {string} are queued for processing as if they
were typed by the user. This uses a low level input buffer.
Expand Down
67 changes: 52 additions & 15 deletions runtime/doc/todo.txt
@@ -1,4 +1,4 @@
*todo.txt* For Vim version 8.2. Last change: 2020 Jan 23
*todo.txt* For Vim version 8.2. Last change: 2020 Feb 04


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -40,10 +40,44 @@ browser use: https://github.com/vim/vim/issues/1234

Include ipv6 syntax changes? (DJ Lucas, #5360)

Add win_type(), which "popup" and "cmdline" as values?

Vim9 script:
- test s:var += 'some'
test exported += 'some'
- implement default values for optional arguments
Generate instructions at start of function, skip over if argument provided?
- Disallow unlet for local/script/imported vars
- :func inside vim9script must still use a:arg
- Check that import in legacy script works and puts item in s:
- Error in any command in "vim9script" aborts sourcing.
- Find a way to test expressions in legacy and Vim9 script without duplication
- Test each level of expressions properly, with type checking
- Test the
- Test try/catch and throw better, also nested.
Test return inside try/finally jumps to finally and then returns.
- call autoload function.
- Type checking arguments when calling :def function
- can use func as reference:
def SomeFunc() ...
map(list, SomeFunc)
- define function and create funcref in one step:
let ref = def(arg: type): rettype
Also extends lambda
- Test: Function declared inside a :def function is local, disappears at the
end of the function. Unless g: is used, just like with variables.
- Can we omit \ for line continuation inside (), {}, ?
Requires parsing while reading a function. Like fgetline in do_one_cmd()?
- implement :type
- implement class
- implement interface
- predefined class: Promise<T>
- import statement for type declaration?
- Make accessing varargs faster: arg[expr]
EVAL expr
LOADVARARG (varags idx)

Popup windows:
- Make it possible to put a terminal window in a popup. Would always grab key
input? Sort-of possible by creating a hidden terminal and opening a popup
with that buffer: #4063.
- Use popup (or popup menu) for command line completion
- When using a popup for the info of a completion menu, and there is not
enough space, let the popup overlap with the menu. (#4544)
Expand All @@ -55,6 +89,8 @@ Popup windows:
- Figure out the size and position better if wrapping inserts indent

Text properties:
- Combining text property with 'cursorline' does not always work (Billie
Cleek, #5533)
- Text properties spanning more than one line
- See remarks at top of src/textprop.c

Expand Down Expand Up @@ -121,9 +157,8 @@ Terminal emulator window:
conversions.

Error numbers available:
E450, E451, E452,
E453, E454, E460, E489, E491, E565, E578, E610, E611, E653,
E654, E856, E857, E860, E861, E863, E889, E900
E451, E452, E453, E454, E460, E489, E491, E565, E578, E610, E611, E653,
E654, E856, E857, E860, E861, E900

Patch to move duplicated code to a function. (Yegappan Lakshmanan, #5330)

Expand All @@ -142,16 +177,20 @@ Needs better docs. Is there a better name?

undo result wrong: Masato Nishihata, #4798

When 'lazyredraw' is set sometimes the title is not updated.
(Jason Franklin, 2020 Feb 3) Looks like a race condition.

Patch to add function to return the text used in the quickfix window.
(Yegappan, #5465)

Patch for Template string: #4491. New pull: #4634
Implementation is too inefficient, avoid using lambda.

Undo puts cursor in wrong line after "cG<Esc>" undo.

:unmap <c-n> gives error but does remove the mapping. (Antony Scriven, 2019
Dec 19)

Sound: support on Mac? Or does libcanberra work there?

Patch to fix session file when using multiple tab pages. (Jason Franklin, 2019
May 20)
Also put :argadd commands at the start for all buffers, so that their order
Expand Down Expand Up @@ -194,6 +233,8 @@ Enable 'termbidi' if $VTE_VERSION >= 5703 ?
Universal solution to detect if t_RS is working, using cursor position.
Koichi Iwamoto, #2126

Sound: support on Mac? Or does libcanberra work there?

Python 3.8 doesn't work. (Antonios Hadjigeorgalis, #5509)

The :syntax cchar value can only be a single character. It would be useful to
Expand All @@ -204,6 +245,8 @@ It can replace the BeOS code, which is likely not used anymore.
Now on github: #1856. Updated Oct 2017
Got permission to include this under the Vim license.

"--cleanFOO" does not result in an error. (#5537)

Add "t" action to settagstack(): truncate and add new entries. (#5405)

Result of synID() sometimes wrong in help files. (#5252)
Expand Down Expand Up @@ -269,9 +312,6 @@ Patch by Alex Dobrynin, 2007 Jun 3. Also fixes other scroll wheel problems.
Add a WindowScrolled event. Trigger around the same time as CursorMoved.
Can be used to update highlighting. #3127 #5181

Patch for Template string: #4491. New pull: #4634
Implementation is too inefficient, avoid using lambda.

Incorrect formatting with autoindent. (Sebastian Gniazdowski, #4909)

Patch to add the :bvimgrep command. (Christian Brabandt, 2014 Nov 12)
Expand Down Expand Up @@ -812,9 +852,6 @@ option_save({list}) *option_save()*
directory (Paulo Marcel Coelho Arabic, 2017 Oct 30, #2266)
Also see #1689.

crash when removing an element while inside map(). (Nikolai Pavlov, 2018 Feb
17, #2652)

When 'virtualedit' is "all" and 'cursorcolumn' is set, the wrong column may be
highlighted. (van-de-bugger, 2018 Jan 23, #2576)

Expand Down
1 change: 1 addition & 0 deletions runtime/doc/usr_41.txt
Expand Up @@ -963,6 +963,7 @@ Testing: *test-functions*
assert_report() report a test failure
test_alloc_fail() make memory allocation fail
test_autochdir() enable 'autochdir' during startup
test_clear_search_pat() clears the last used search pattern
test_override() test with Vim internal overrides
test_garbagecollect_now() free memory right now
test_getvalue() get value of an internal variable
Expand Down
3 changes: 1 addition & 2 deletions runtime/doc/version8.txt
@@ -1,4 +1,4 @@
*version8.txt* For Vim version 8.2. Last change: 2019 Dec 29
*version8.txt* For Vim version 8.2. Last change: 2020 Feb 04


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -306,7 +306,6 @@ New and extended functions: ~
|systemlist()| get the result of a shell command as a list
|test_alloc_fail()| make memory allocation fail
|test_autochdir()| test 'autochdir' functionality
test_disable_char_avail() test without typeahead (removed later)
|test_garbagecollect_now()| free memory right now
|test_null_channel()| return a null Channel
|test_null_dict()| return a null Dict
Expand Down
Empty file modified runtime/doc/vim-it.1 100755 → 100644
Empty file.

0 comments on commit e49369c

Please sign in to comment.