Bram Moolenaar
6601b62943
patch 8.2.2344: using inclusive index for slice is not always desired
...
Problem: Using inclusive index for slice is not always desired.
Solution: Add the slice() method, which has an exclusive index. (closes
#7408 )
2021-01-13 21:47:15 +01:00
Bram Moolenaar
c423ad77ed
patch 8.2.2343: Vim9: return type of readfile() is any
...
Problem: Vim9: return type of readfile() is any.
Solution: Add readblob() so that readfile() can be expected to always
return a list of strings. (closes #7671 )
2021-01-13 20:38:03 +01:00
Bram Moolenaar
a47e05f04a
patch 8.2.2339: cannot get the type of a value as a string
...
Problem: Cannot get the type of a value as a string.
Solution: Add typename().
2021-01-12 21:49:00 +01:00
Bram Moolenaar
b0e6b51364
patch 8.2.2336: Vim9: not possible to extend dictionary with different type
...
Problem: Vim9: it is not possible to extend a dictionary with different
item types.
Solution: Add extendnew(). (closes #7666 )
2021-01-12 20:23:40 +01:00
Bram Moolenaar
6f02b00bb0
patch 8.2.2324: not easy to get mark en cursor posotion by character count
...
Problem: Not easy to get mark en cursor posotion by character count.
Solution: Add functions that use character index. (Yegappan Lakshmanan,
closes #7648 )
2021-01-10 20:22:54 +01:00
Bram Moolenaar
9d19e4f4ba
patch 8.2.2280: fuzzy matching doesn't give access to the scores
...
Problem: Fuzzy matching doesn't give access to the scores.
Solution: Return the scores with a third list. (Yegappan Lakshmanan,
closes #7596 )
2021-01-02 18:31:32 +01:00
Bram Moolenaar
7e6a515ed1
Update runtime files.
2021-01-02 16:39:53 +01:00
Bram Moolenaar
17793ef23a
patch 8.2.2233: cannot convert a byte index into a character index
...
Problem: Cannot convert a byte index into a character index.
Solution: Add charidx(). (Yegappan Lakshmanan, closes #7561 )
2020-12-28 12:56:58 +01:00
Bram Moolenaar
4072ba571b
Update runtime files.
2020-12-23 13:56:35 +01:00
Bram Moolenaar
1b884a0053
Update runtime files.
2020-12-10 21:11:27 +01:00
Bram Moolenaar
f0068c5154
patch 8.2.2070: can't get the exit value in VimLeave(Pre) autocommands
...
Problem: Can't get the exit value in VimLeave or VimLeavePre autocommands.
Solution: Add v:exiting like in Neovim. (Yegappan Lakshmanan, closes #7395 )
2020-11-30 17:42:10 +01:00
Bram Moolenaar
4466ad6baa
Update runtime files
2020-11-21 13:16:30 +01:00
Bram Moolenaar
957cf67d50
patch 8.2.1978: making a mapping work in all modes is complicated
...
Problem: Making a mapping work in all modes is complicated.
Solution: Add the <Cmd> special key. (Yegappan Lakshmanan, closes #7282 ,
closes 4784, based on patch by Bjorn Linse)
2020-11-12 14:21:06 +01:00
Bram Moolenaar
ea696852e7
patch 8.2.1969: Vim9: map() may change the list or dict item type
...
Problem: Vim9: map() may change the list or dict item type.
Solution: Add mapnew().
2020-11-09 18:31:39 +01:00
Bram Moolenaar
3132cddd20
Update runtime files
2020-11-05 20:41:49 +01:00
Bram Moolenaar
55e29611d2
patch 8.2.1933: cannot sort using locale ordering
...
Problem: Cannot sort using locale ordering.
Solution: Add a flag for :sort and sort() to use the locale. (Dominique
Pellé, closes #7237 )
2020-11-01 13:57:44 +01:00
Bram Moolenaar
cb80aa2d53
Update runtime files.
2020-10-26 21:12:46 +01:00
Bram Moolenaar
8ded5b647a
patch 8.2.1893: fuzzy matching does not support multiple words
...
Problem: Fuzzy matching does not support multiple words.
Solution: Add support for matching white space separated words. (Yegappan
Lakshmanan, closes #7163 )
2020-10-23 16:50:30 +02:00
Bram Moolenaar
4f4d51a942
Update runtime files.
2020-10-11 13:57:40 +02:00
Bram Moolenaar
92f26c256e
patch 8.2.1794: no falsy Coalescing operator
...
Problem: No falsy Coalescing operator.
Solution: Add the "??" operator. Fix mistake with function argument count.
2020-10-03 20:17:30 +02:00
Bram Moolenaar
391c362794
patch 8.2.1771: synIDattr() cannot get the value of ctermul
...
Problem: synIDattr() cannot get the value of ctermul.
Solution: Add the "ul" value for "what". (closes #7037 )
2020-09-29 20:59:17 +02:00
Bram Moolenaar
d58a3bf7da
Update runtime files.
2020-09-28 21:48:16 +02:00
Bram Moolenaar
6a33ef0deb
patch 8.2.1741: pathshorten() only supports using one character
...
Problem: pathshorten() only supports using one character.
Solution: Add an argument to control the length. (closes #7006 )
2020-09-25 22:42:48 +02:00
Bram Moolenaar
99ca9c4868
patch 8.2.1727: a popup created with "cursorline" will ignore "firstline"
...
Problem: A popup created with "cursorline" will ignore "firstline".
Solution: When both "cursorline" and "firstline" are present put the cursor
on "firstline". (closes #7000 ) Add the "winid" argument to
getcurpos().
2020-09-22 21:55:41 +02:00
Bram Moolenaar
4f73b8e9cc
patch 8.2.1726: fuzzy matching only works on strings
...
Problem: Fuzzy matching only works on strings.
Solution: Support passing a dict. Add matchfuzzypos() to also get the match
positions. (Yegappan Lakshmanan, closes #6947 )
2020-09-22 20:33:50 +02:00
Bram Moolenaar
1d59aa1fdf
Update runtime files.
2020-09-19 18:50:13 +02:00
Bram Moolenaar
a187c43cfe
patch 8.2.1698: cannot lock a variable in legacy Vim script like in Vim9
...
Problem: Cannot lock a variable in legacy Vim script like in Vim9.
Solution: Make ":lockvar 0" work.
2020-09-16 21:08:28 +02:00
Bram Moolenaar
635414dd2f
patch 8.2.1665: cannot do fuzzy string matching
...
Problem: Cannot do fuzzy string matching.
Solution: Add matchfuzzy(). (Yegappan Lakshmanan, closes #6932 )
2020-09-11 22:25:15 +02:00
Bram Moolenaar
1c6737b20a
Update runtime files.
2020-09-07 22:18:52 +02:00
Bram Moolenaar
077cc7aa0e
patch 8.2.1588: cannot read back the prompt of a prompt buffer
...
Problem: Cannot read back the prompt of a prompt buffer.
Solution: Add prompt_getprompt(). (Ben Jackson, closes #6851 )
2020-09-04 16:35:35 +02:00
Bram Moolenaar
207f009326
Update runtime files.
2020-08-30 17:20:20 +02:00
Bram Moolenaar
0b39c3fd4c
patch 8.2.1544: cannot translate messages in a Vim script
...
Problem: Cannot translate messages in a Vim script.
Solution: Add gettext(). Try it out for a few messages in the options
window.
2020-08-30 15:52:10 +02:00
Bram Moolenaar
4e4473c927
patch 8.2.1536: cannot get the class of a character; emoji widths are wrong
...
Problem: Cannot get the class of a character; emoji widths are wrong in
some environments.
Solution: Add charclass(). Update some emoji widths. Add script to check
emoji widths.
2020-08-28 22:24:57 +02:00
Bram Moolenaar
08aac3c619
patch 8.2.1535: it is not possible to specify cell widths of characters
...
Problem: It is not possible to specify cell widths of characters.
Solution: Add setcellwidths().
2020-08-28 21:04:24 +02:00
Bram Moolenaar
6c53fca023
patch 8.2.1517: cannot easily get the character under the cursor
...
Problem: Cannot easily get the character under the cursor.
Solution: Add the {chars} argument to strpart().
2020-08-23 17:34:46 +02:00
Bram Moolenaar
021bda5671
patch 8.2.1473: items in a list given to :const can still be modified
...
Problem: Items in a list given to :const can still be modified.
Solution: Work like ":lockvar! name" but don't lock referenced items.
Make locking a blob work.
2020-08-17 21:07:22 +02:00
Bram Moolenaar
3d1cde8a2f
Update runtime files.
2020-08-15 18:55:18 +02:00
Bram Moolenaar
e3c37d8ebf
patch 8.2.1461: Vim9: string indexes are counted in bytes
...
Problem: Vim9: string indexes are counted in bytes.
Solution: Use character indexes. (closes #6574 )
2020-08-15 18:39:05 +02:00
Bram Moolenaar
62a232506d
patch 8.2.1401: cannot jump to the last used tabpage
...
Problem: Cannot jump to the last used tabpage.
Solution: Add g<Tab> and tabpagnr('#'). (Yegappan Lakshmanan, closes #6661 ,
neovim #11626 )
2020-08-09 14:04:42 +02:00
Bram Moolenaar
e7b1ea0276
Update runtime files.
2020-08-07 19:54:59 +02:00
Bram Moolenaar
aa970abd0a
patch 8.2.1354: test 59 is old style
...
Problem: Test 59 is old style.
Solution: Convert into a new style test. (Yegappan Lakshmanan, closes #6604 )
2020-08-02 16:10:39 +02:00
Bram Moolenaar
2547aa930b
Update runtime files.
2020-07-26 17:00:44 +02:00
Bram Moolenaar
d43906d2e5
patch 8.2.1255: cannot use a lambda with quickfix functions
...
Problem: Cannot use a lambda with quickfix functions.
Solution: Add support for lambda. (Yegappan Lakshmanan, closes #6499 )
2020-07-20 21:31:32 +02:00
Bram Moolenaar
6434fc574d
patch 8.2.1241: cannot use getbufinfo() as a method
...
Problem: Cannot use getbufinfo() as a method.
Solution: Support using getbufinfo() as a method. (closes #6458 )
2020-07-18 22:24:22 +02:00
Bram Moolenaar
7ff78465f7
Update runtime files
2020-07-10 22:00:53 +02:00
Bram Moolenaar
ae97b94176
patch 8.2.1166: once mouse move events are enabled getchar() returns them
...
Problem: Once mouse move events are enabled getchar() returns them.
Solution: Ignore K_MOUSEMOVE in getchar(). (closes #6424 )
2020-07-09 19:16:35 +02:00
Bram Moolenaar
e46a440505
Runtime file updates
2020-06-30 20:38:27 +02:00
Bram Moolenaar
73fef33014
Update runtime files
2020-06-21 22:12:03 +02:00
Bram Moolenaar
40a019f157
patch 8.2.0996: using "aucmdwin" in win_gettype() is not ideal
...
Problem: Using "aucmdwin" in win_gettype() is not ideal.
Solution: Rename to "autocmd".
2020-06-17 21:41:35 +02:00
Bram Moolenaar
0fe937fd86
patch 8.2.0991: cannot get window type for autocmd and preview window
...
Problem: Cannot get window type for autocmd and preview window.
Solution: Add types to win_gettype(). (Yegappan Lakshmanan, closes #6277 )
2020-06-16 22:42:04 +02:00