mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 11:15:14 -07:00
7caf0eafd8
feat(lua)!: add stricter vim.tbl_islist(), rename vim.tbl_isarray() Problem: `vim.tbl_islist` allows gaps in tables with integer keys ("arrays"). Solution: Rename `vim.tbl_islist` to `vim.tbl_isarray`, add new `vim.tbl.islist` that checks for consecutive integer keys that start from 1.
69 lines
2.4 KiB
Plaintext
69 lines
2.4 KiB
Plaintext
*news.txt* Nvim
|
|
|
|
|
|
NVIM REFERENCE MANUAL
|
|
|
|
|
|
Notable changes in Nvim 0.10 from 0.9 *news*
|
|
|
|
For changes in Nvim 0.9, see |news-0.9|.
|
|
|
|
Type |gO| to see the table of contents.
|
|
|
|
==============================================================================
|
|
BREAKING CHANGES *news-breaking*
|
|
|
|
The following changes may require adaptations in user config or plugins.
|
|
|
|
• |vim.tbl_islist()| now checks whether a table is actually list-like (i.e.,
|
|
has integer keys without gaps and starting from 1). For the previous
|
|
behavior (only check for integer keys, allow gaps or not starting with 1),
|
|
use |vim.tbl_isarray()|.
|
|
|
|
• "#" followed by a digit no longer stands for a function key at the start of
|
|
the lhs of a mapping.
|
|
|
|
• `:behave` was removed. if you used `:behave mswin`, the following is equivalent: >vim
|
|
|
|
set selection=exclusive
|
|
set selectmode=mouse,key
|
|
set mousemodel=popup
|
|
set keymodel=startsel,stopsel
|
|
|
|
==============================================================================
|
|
ADDED FEATURES *news-added*
|
|
|
|
The following new APIs or features were added.
|
|
|
|
• ...
|
|
|
|
==============================================================================
|
|
CHANGED FEATURES *news-changed*
|
|
|
|
The following changes to existing APIs or features add new behavior.
|
|
|
|
• |vim.tbl_contains()| now works for general tables and allows specifying a
|
|
predicate function that is checked for each value. (Use |vim.list_contains()|
|
|
for checking list-like tables (integer keys without gaps) for literal values.)
|
|
|
|
• |vim.region()| can use a string accepted by |getpos()| as position.
|
|
|
|
==============================================================================
|
|
REMOVED FEATURES *news-removed*
|
|
|
|
The following deprecated functions or APIs were removed.
|
|
|
|
• Vimball support is removed.
|
|
- :Vimuntar command removed.
|
|
|
|
==============================================================================
|
|
DEPRECATIONS *news-deprecations*
|
|
|
|
The following functions are now deprecated and will be removed in the next
|
|
release.
|
|
|
|
• ...
|
|
|
|
|
|
vim:tw=78:ts=8:sw=2:et:ft=help:norl:
|