Update runtime files
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index e3bb34e..6c7435c 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -1,4 +1,4 @@
-*eval.txt* For Vim version 8.2. Last change: 2020 Mar 14
+*eval.txt* For Vim version 8.2. Last change: 2020 Mar 16
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -5839,8 +5839,8 @@
if has('feature')
let x = this->breaks->without->the->feature
endif
-< If the `endif` would be in the second line it would not be
- found.
+< If the `endif` would be moved to the second line as "| endif" it
+ would not be found.
has_key({dict}, {key}) *has_key()*
@@ -7190,11 +7190,11 @@
Returns an empty dictionary if the menu item is not found.
Examples: >
- :echo maparg('Edit.Cut')
- :echo maparg('File.Save', 'n')
+ :echo menu_info('Edit.Cut')
+ :echo menu_info('File.Save', 'n')
<
Can also be used as a |method|: >
- GetMenuName()->maparg('v')
+ GetMenuName()->menu_info('v')
< *min()*
diff --git a/runtime/doc/gui.txt b/runtime/doc/gui.txt
index 41e20b1..3bb7fc9 100644
--- a/runtime/doc/gui.txt
+++ b/runtime/doc/gui.txt
@@ -1,4 +1,4 @@
-*gui.txt* For Vim version 8.2. Last change: 2019 Nov 16
+*gui.txt* For Vim version 8.2. Last change: 2020 Mar 16
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -855,6 +855,8 @@
* The menu was defined with "nore" to disallow remapping.
& The menu was defined with "<script>" to allow remapping script-local
mappings only.
+s The menu was defined with "<silent>" to avoid showing what it is
+ mapped to when triggered.
- The menu was disabled.
Note that hitting <Tab> while entering a menu name after a menu command may
diff --git a/runtime/doc/os_haiku.txt b/runtime/doc/os_haiku.txt
index 1154ea7..880d284 100644
--- a/runtime/doc/os_haiku.txt
+++ b/runtime/doc/os_haiku.txt
@@ -1,4 +1,4 @@
-*os_haiku.txt* For Vim version 8.2. Last change: 2020 Feb 26
+*os_haiku.txt* For Vim version 8.2. Last change: 2020 Mar 19
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -16,7 +16,7 @@
2. Compiling Vim |haiku-compiling|
3. The Haiku GUI |haiku-gui|
4. The $VIM directory |haiku-vimdir|
- 5. The $BE_USER_SETTINGS
+ 5. The $USER_SETTINGS_DIR
directory |haiku-user-settings-dir|
6. Drag & Drop |haiku-dragndrop|
7. Single Launch vs. Multiple
@@ -44,8 +44,13 @@
vim with the Haiku GUI support. Run ./configure --help , to find out other
features you can enable/disable.
+Haiku uses "ncurses6" as its terminal library, therefore you need to have
+"ncurses6_devel" package installed from HaikuDepot in order to configure
+the Haiku build. Just append "--with-tlib=ncurses6" to ./configure command
+below for the initial build.
+
Now you should use "make" to compile Vim, then "make install" to install it.
-For seamless integration into the Haiku the GUI-less vim binary should be
+For seamless integration into Haiku, the GUI-less vim binary should be
additionally installed over the GUI version. Typical build commands are: >
./configure --prefix=`finddir B_SYSTEM_NONPACKAGED_DIRECTORY` \
@@ -89,9 +94,10 @@
:version
-The normal value is /boot/common/data/vim. If you don't like it you can
-set the VIM environment variable to override this, or set 'helpfile' in your
-.vimrc: >
+The normal value is /boot/system/data/vim for Haikuports version,
+/boot/system/non-packaged/data/vim for manual builds. If you don't like it
+you can set the VIM environment variable to override this, or set 'helpfile'
+in your .vimrc: >
:if version >= 500
: set helpfile=~/vim/runtime/doc/help.txt
@@ -221,7 +227,6 @@
The port is under development now and far away from the perfect state. Bug
reports, patches and wishes are welcome.
-
-Siarzhuk Zharski <imker@gmx.li>
diff --git a/runtime/doc/popup.txt b/runtime/doc/popup.txt
index 5122994..dce2a90 100644
--- a/runtime/doc/popup.txt
+++ b/runtime/doc/popup.txt
@@ -1,4 +1,4 @@
-*popup.txt* For Vim version 8.2. Last change: 2020 Feb 20
+*popup.txt* For Vim version 8.2. Last change: 2020 Mar 14
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -152,6 +152,8 @@
then becomes hidden.
- The default Pmenu color is only used for the border and padding. To change
the color of the terminal itself set 'wincolor'.
+- The default minimal size is 5 lines of 20 characters; Use the "minwidth" and
+ "minheight" parameters to set a different value.
To run a terminal in a popup window, first create the terminal hidden. Then
pass the buffer number to popup_create(). Example: >
@@ -566,7 +568,8 @@
If you want to create a new buffer yourself use |bufadd()| and pass the buffer
number to popup_create().
-It is not possible to use the buffer of a terminal window. *E278*
+It is not possible to use the buffer of a terminal window. *E278* You CAN
+create a hidden terminal buffer and use that one in a popup window.
The second argument of |popup_create()| is a dictionary with options:
line Screen line where to position the popup. Can use a
diff --git a/runtime/doc/tags b/runtime/doc/tags
index 3ba0ccc..379af50 100644
--- a/runtime/doc/tags
+++ b/runtime/doc/tags
@@ -1267,6 +1267,7 @@
+X11 various.txt /*+X11*
+acl various.txt /*+acl*
+arabic various.txt /*+arabic*
++autochdir various.txt /*+autochdir*
+autocmd various.txt /*+autocmd*
+autoservername various.txt /*+autoservername*
+balloon_eval various.txt /*+balloon_eval*
@@ -7734,7 +7735,11 @@
menu-examples gui.txt /*menu-examples*
menu-priority gui.txt /*menu-priority*
menu-separator gui.txt /*menu-separator*
+menu-shortcut gui.txt /*menu-shortcut*
+menu-text gui.txt /*menu-text*
+menu-tips gui.txt /*menu-tips*
menu.vim gui.txt /*menu.vim*
+menu_info() eval.txt /*menu_info()*
menus gui.txt /*menus*
merge diff.txt /*merge*
message-history message.txt /*message-history*
@@ -9568,6 +9573,7 @@
toggle-revins version4.txt /*toggle-revins*
tolower() eval.txt /*tolower()*
toolbar-icon gui.txt /*toolbar-icon*
+tooltips gui.txt /*tooltips*
toupper() eval.txt /*toupper()*
tr() eval.txt /*tr()*
trim() eval.txt /*trim()*
diff --git a/runtime/doc/todo.txt b/runtime/doc/todo.txt
index d8f2988..07ca1ee 100644
--- a/runtime/doc/todo.txt
+++ b/runtime/doc/todo.txt
@@ -1,4 +1,4 @@
-*todo.txt* For Vim version 8.2. Last change: 2020 Mar 13
+*todo.txt* For Vim version 8.2. Last change: 2020 Mar 19
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -38,16 +38,14 @@
*known-bugs*
-------------------- Known bugs and current work -----------------------
-When starting a terminal popup the size defaults to nothing. Should have a
-sensible default, e.g. four lines of 30 chars.
-call popup_create(term_start(&shell, #{hidden: 1}), #{})
+Add second argument to has(), return True when the feature can exist at all.
-Test_terminal_in_popup() still sometimes fails with "All" instead of "Top".
+Patch to fix buffer menu. (Yee Cheng Chin, #5787)
-Patch to fix vimtutor problems on Windows (Wu Yongwei, #5774)
-
-Additional tests for menu. (Yegappan, #5760)
-Introduces menu_info(), check that out.
+Add $TEST_MAY_FAIL, comma separated list of test functions that won't be fatal
+when failed.
+- When matcning in AfterTheTest() then do not add to s:errors but to
+ s:warnings. in testdir/runtest.vim
Vim9 script:
- Add vim9 commands to index, so that vim.vim will get them automatically.
@@ -66,8 +64,8 @@
- 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
+- Fix memory leaks for test_vim9_disassemble, test_vim9_expr, test_vim9_script
- 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.
@@ -93,10 +91,13 @@
LOADVARARG (varags idx)
Popup windows:
+- With some sequence get get hidden finished terminal buffer. (#5768)
+ Cannot close popup terminal (#5744)
+ Buffer can't be wiped, gets status "aF". (#5764)
+ Is buf->nwindows incorrect?
- popup_clear() and popup_close() should close the terminal popup, and
make the buffer hidden. #5745
- With terminal in popup, allow for popup_hide() to temporarily hide it.?
-- With some sequence get get hidden finished terminal buffer. (#5768)
- Fire some autocommand event after a new popup window was created and
positioned? PopupNew? Could be used to set some options or move it out of
the way. (#5737)
@@ -190,6 +191,10 @@
Patch to fix drawing error with DirectX. (James Grant, #5688)
Causes flicker on resizing.
+Patch to make lambda functions faster (Ken Takata)
+https://github.com/vim/vim/pull/5727
+ LGTM remark: size derived from user input (getenv). Don't see how.
+
Patch to use more FOR_ALL_ macros and use them. (Yegappan Lakshmanan, #5339)
Patch to explain use of "%" in :!. (David Briscoe, #5591)
@@ -252,6 +257,9 @@
Also #4994: window-local options not always restored, related to using :badd.
Also #5326: netrw buffers are not restored.
+When 'backupdir' has a path ending in double slash (meaning: use full path of
+the file) combined with 'patchmode' the file name is wrong. (#5791)
+
Patch to support cindent option to handle pragmas differently.
(Max Rumpf, #5468)
@@ -353,6 +361,8 @@
Patch to support "0o" for octal numbers. (Ken Takata, #5304)
+Patch to enable IXON, avoid that CTRL-S stops terminal output. (#5775)
+
When getting a focus event halfway a mapping this aborts the mapping. E.g.
when "qq" is mapped and after the first "q" the mouse is moved outside of the
gvim window (with focus follows mouse), then the K_FOCUSLOST key is put in the
@@ -637,7 +647,12 @@
Add buffer argument to undotree(). (#4001)
Using uninitialized value in test_gn
-Using uninitialized value in test_crypt.
+Using uninitialized value in test_crypt (can't explain why).
+memory leak in test_cmdline
+==6522== by 0x291AFF: ga_grow (misc2.c:2069)
+==6522== by 0x3D5B4B: win_size_save (window.c:5243)
+==6522== by 0x222922: open_cmdwin (ex_getln.c:4177)
+==6522== by 0x21D472: getcmdline_int (ex_getln.c:1376)
memory leak in test_paste
Memory leak in test_terminal:
==23530== by 0x2640D7: alloc (misc2.c:874)
@@ -649,6 +664,7 @@
==23530== by 0x35C923: term_start (terminal.c:421)
==23530== by 0x2AFF30: mch_call_shell_terminal (os_unix.c:4377)
==23530== by 0x2B16BE: mch_call_shell (os_unix.c:5383)
+Memory leak in test_terminal_fail
TODO: be able to run all parts of test_alot with valgrind separately
Memory leak in test_alot with pyeval() (allocating partial)
Memory leak in test_alot with expand()
diff --git a/runtime/doc/usr_41.txt b/runtime/doc/usr_41.txt
index dfd64c8..8fece1a 100644
--- a/runtime/doc/usr_41.txt
+++ b/runtime/doc/usr_41.txt
@@ -1,4 +1,4 @@
-*usr_41.txt* For Vim version 8.2. Last change: 2019 Dec 17
+*usr_41.txt* For Vim version 8.2. Last change: 2020 Mar 15
VIM USER MANUAL - by Bram Moolenaar
diff --git a/runtime/doc/various.txt b/runtime/doc/various.txt
index 547ca76..b6867bc 100644
--- a/runtime/doc/various.txt
+++ b/runtime/doc/various.txt
@@ -1,4 +1,4 @@
-*various.txt* For Vim version 8.2. Last change: 2020 Feb 22
+*various.txt* For Vim version 8.2. Last change: 2020 Mar 19
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -317,6 +317,7 @@
*+acl* |ACL| support included
*+ARP* Amiga only: ARP support included
B *+arabic* |Arabic| language support
+B *+autochdir* support 'autochdir' option
T *+autocmd* |:autocmd|, automatic commands
H *+autoservername* Automatically enable |clientserver|
m *+balloon_eval* |balloon-eval| support in the GUI. Included when
diff --git a/runtime/doc/windows.txt b/runtime/doc/windows.txt
index a5f9098..6129b8d 100644
--- a/runtime/doc/windows.txt
+++ b/runtime/doc/windows.txt
@@ -1,4 +1,4 @@
-*windows.txt* For Vim version 8.2. Last change: 2019 Dec 07
+*windows.txt* For Vim version 8.2. Last change: 2020 Mar 19
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -215,7 +215,7 @@
height). Reduces the current window height to create room
(and others, if the 'equalalways' option is set).
-:[N]sv[iew] [++opt] [+cmd] {file} *:sv* *:sview* *splitview*
+:[N]sv[iew] [++opt] [+cmd] [file] *:sv* *:sview* *splitview*
Same as ":split", but set 'readonly' option for this buffer.
:[N]sf[ind] [++opt] [+cmd] {file} *:sf* *:sfi* *:sfind* *splitfind*