Bram Moolenaar
a7583c42cd
patch 8.2.4912: using execute() to define a lambda doesn't work
...
Problem: Using execute() to define a lambda doesn't work. (Ernie Rael)
Solution: Put the getline function in evalarg. (closes #10375 )
2022-05-07 21:14:05 +01:00
Bram Moolenaar
249591057b
patch 8.2.4911: the mode #defines are not clearly named
...
Problem: The mode #defines are not clearly named.
Solution: Prepend MODE_. Renumber them to put the mapped modes first.
2022-05-07 20:01:16 +01:00
Shougo Matsushita
79d599b877
patch 8.2.4903: cannot get the current cmdline completion type and position
...
Problem: Cannot get the current cmdline completion type and position.
Solution: Add getcmdcompltype() and getcmdscreenpos(). (Shougo Matsushita,
closes #10344 )
2022-05-07 12:48:29 +01:00
LemonBoy
f3b4895f27
patch 8.2.4870: Vim9: expression in :substitute is not compiled
...
Problem: Vim9: expression in :substitute is not compiled.
Solution: Use an INSTR instruction if possible. (closes #10334 )
2022-05-05 13:53:03 +01:00
Ernie Rael
51d04d16f2
patch 8.2.4861: it is not easy to restore saved mappings
...
Problem: It is not easy to restore saved mappings.
Solution: Make mapset() accept a dict argument. (Ernie Rael, closes #10295 )
2022-05-04 15:40:22 +01:00
Bram Moolenaar
a96edb736d
patch 8.2.4841: empty string considered an error for expand()
...
Problem: Empty string considered an error for expand() when 'verbose' is
set. (Christian Brabandt)
Solution: Do not give an error for an empty result. (closes #10307 )
2022-04-28 17:52:24 +01:00
LemonBoy
dca1d40cd0
patch 8.2.4838: checking for absolute path is not trivial
...
Problem: Checking for absolute path is not trivial.
Solution: Add isabsolutepath(). (closes #10303 )
2022-04-28 15:26:33 +01:00
Ernie Rael
09661203ec
patch 8.2.4825: can only get a list of mappings
...
Problem: Can only get a list of mappings.
Solution: Add the optional {abbr} argument. (Ernie Rael, closes #10277 )
Rename to maplist(). Rename test file.
2022-04-25 14:40:44 +01:00
Ernie Rael
659c240cf7
patch 8.2.4820: not simple programmatic way to find a specific mapping
...
Problem: Not simple programmatic way to find a specific mapping.
Solution: Add getmappings(). (Ernie Rael, closes #10273 )
2022-04-24 18:40:28 +01:00
Bram Moolenaar
68aaff4697
patch 8.2.4769: build warning with UCRT
...
Problem: Build warning with UCRT.
Solution: Adjust #ifdef for _wenviron. (John Marriott)
2022-04-17 10:57:44 +01:00
Yegappan Lakshmanan
3b470ae88f
patch 8.2.4758: when using an LSP channel want to get the message ID
...
Problem: When using an LSP channel want to get the message ID.
Solution: Have ch_sendexpr() return the ID. (Yegappan Lakshmanan,
closes #10202 )
2022-04-16 10:41:27 +01:00
LemonBoy
7714231bb5
patch 8.2.4754: using cached values after unsetting some environment variables
...
Problem: Still using cached values after unsetting some known environment
variables.
Solution: Take care of the side effects. (closes #10194 )
2022-04-15 20:50:46 +01:00
Bram Moolenaar
31e5c60a68
patch 8.2.4753: error from setting an option is silently ignored
...
Problem: Error from setting an option is silently ignored.
Solution: Handle option value errors better. Fix uses of N_().
2022-04-15 13:53:33 +01:00
Bram Moolenaar
575445200b
patch 8.2.4740: when expand() fails there is no error message
...
Problem: When expand() fails there is no error message.
Solution: When 'verbose' is set give an error message.
2022-04-12 12:54:11 +01:00
LemonBoy
db0ea7f2b0
patch 8.2.4731: the changelist index is not remembered per buffer
...
Problem: The changelist index is not remembered per buffer.
Solution: Keep the changelist index per window and buffer. (closes #10135 ,
closes #2173 )
2022-04-10 17:59:26 +01:00
Yegappan Lakshmanan
2b74b6805b
patch 8.2.4679: cannot have expandcmd() give an error message for mistakes
...
Problem: Cannot have expandcmd() give an error message for mistakes.
Solution: Add an optional argument to give errors. Fix memory leak when
expanding files fails. (Yegappan Lakshmanan, closes #10071 )
2022-04-03 21:30:32 +01:00
Bram Moolenaar
0b962e5685
patch 8.2.4677: the Athena GUI support is outdated
...
Problem: The Athena GUI support is outdated.
Solution: Remove the Athena GUI code.
2022-04-03 18:02:37 +01:00
LemonBoy
58f331a05f
patch 8.2.4669: in compiled code len('string') is not inlined
...
Problem: In compiled code len('string') is not inlined.
Solution: Compute the length at compile time if possible. (closes #10065 )
2022-04-02 21:59:06 +01:00
Yegappan Lakshmanan
5018a836c0
patch 8.2.4667: expandcmd() fails on an error
...
Problem: expandcmd() fails on an error.
Solution: On failure return the command unmodified. (yegappan Lakshmanan,
closes #10063 )
2022-04-02 21:12:21 +01:00
Yegappan Lakshmanan
655b734ee8
patch 8.2.4518: the binary tag search feature is always enabled
...
Problem: The binary tag search feature is always enabled.
Solution: Remove the #ifdefs. Add a few more tests. (Yegappan Lakshmanan,
closes #9893 )
2022-03-06 14:27:10 +00:00
Bram Moolenaar
fa02616718
patch 8.2.4459: Vim9: compiling sort() call fails with unknown arguments
...
Problem: Vim9: compiling sort() call fails with a funcref that has unknown
arguments.
Solution: Do not check the arguments if they are unknown at compile time.
(closes #9835 )
2022-02-23 21:03:32 +00:00
Bram Moolenaar
6e1a38745f
patch 8.2.4458: Vim9: compiling filter() call fails with unknown arguments
...
Problem: Vim9: compiling filter() call fails with funcref that has unknown
arguments.
Solution: Do not check the arguments if they are unknown at compile time.
(closes #9835 )
2022-02-23 19:11:49 +00:00
Bram Moolenaar
33fc4a6307
patch 8.2.4457: the GPM library can only be linked statically
...
Problem: The GPM library can only be linked statically.
Solution: Make it possible to load the GPM library dynamically. (Damien)
2022-02-23 18:07:38 +00:00
Bram Moolenaar
2007dd49f5
patch 8.2.4455: accepting one and zero for second sort() argument is strange
...
Problem: Accepting one and zero for the second sort() argument is strange.
Solution: Disallow using one and zero in Vim9 script.
2022-02-23 13:17:47 +00:00
Bram Moolenaar
9cd4c0fb98
patch 8.2.4451: sort() fails when ignoring case
...
Problem: sort() fails when ignoring case.
Solution: Accept a number one argument in sort().
2022-02-22 22:53:10 +00:00
Bram Moolenaar
e843efcc35
patch 8.2.4449: vim9: function argument of sort() not checked at compile time
...
Problem: vim9: function argument of sort() not checked at compile time.
Solution: Add a compile time check.
2022-02-22 21:54:44 +00:00
Bram Moolenaar
16f6c8ac94
patch 8.2.4441: Vim9: function argument of filter() not checked like map()
...
Problem: Vim9: function argument of filter() not checked like map().
Solution: Also check the function argument of filter().
2022-02-22 15:12:14 +00:00
Bram Moolenaar
7842761bba
patch 8.2.4435: dead code in checking map() arguments
...
Problem: Dead code in checking map() arguments. (Dominique Pellé)
Solution: Remove the first return statement. (closes #9815 )
2022-02-21 18:34:30 +00:00
Bram Moolenaar
c2f17f7e64
patch 8.2.4429: using script-local function from the wrong script
...
Problem: Using script-local function from the wrong script when using a
partial. (Yegappan Lakshmanan)
Solution: Include the script ID in the partial name.
2022-02-21 13:13:50 +00:00
Bram Moolenaar
c1e6c7bafe
patch 8.2.4426: map() function on string and blob does not check types
...
Problem: map() function on string and blob does not check argument types at
compile time.
Solution: Check string and blob argument types. Support "0z1234->func()".
2022-02-20 18:26:46 +00:00
Bram Moolenaar
eddd4fc4f6
patch 8.2.4425: map() function does not check function arguments
...
Problem: map() function does not check function arguments at compile time.
Solution: Give an error if the arguments of a map() function are wrong.
2022-02-20 15:52:28 +00:00
kylo252
ae6f1d8b14
patch 8.2.4402: missing parenthesis may cause unexpected problems
...
Problem: Missing parenthesis may cause unexpected problems.
Solution: Add more parenthesis is macros. (closes #9788 )
2022-02-16 19:24:07 +00:00
Bram Moolenaar
4b1d963972
patch 8.2.4375: ctx_imports is not used
...
Problem: ctx_imports is not used.
Solution: Delete ctx_imports. Add missing dependency.
2022-02-13 21:51:08 +00:00
K.Takata
d68b2fc034
patch 8.2.4354: dynamic loading of libsodium not handled properly
...
Problem: Dynamic loading of libsodium not handled properly.
Solution: Fix has() and :version. Show an error message when loading fails.
Fix memory leaks. (Ken Takata, closes #9754 )
2022-02-12 11:18:37 +00:00
Yegappan Lakshmanan
3908ef5017
patch 8.2.4325: 'wildmenu' only shows few matches
...
Problem: 'wildmenu' only shows few matches.
Solution: Add the "pum" option: use a popup menu to show the matches.
(Yegappan Lakshmanan et al., closes #9707 )
2022-02-08 12:08:07 +00:00
Bram Moolenaar
7aca5ca676
patch 8.2.4322: Vim9: crash when using funcref with closure
...
Problem: Vim9: crash when using funcref with closure.
Solution: Keep a reference to the funcref that has the outer context.
(closes #9716 )
2022-02-07 19:56:43 +00:00
Bram Moolenaar
92368aad61
patch 8.2.4321: Vim9: crash when using a funcref to a closure
...
Problem: Vim9: crash when using a funcref to a closure.
Solution: Copy pt_outer to the new partial. (closes #9714 )
2022-02-07 17:50:39 +00:00
Bram Moolenaar
00eb99528e
patch 8.2.4304: Vim9: slice() makes a copy but doesn't change the type
...
Problem: Vim9: slice() makes a copy but doesn't change the type.
Solution: Change the declared type like copy(). (closes #9696 )
2022-02-05 19:23:18 +00:00
Bram Moolenaar
82e46e5d31
patch 8.2.4302: Vim9: return type of getline() is too strict
...
Problem: Vim9: return type of getline() is too strict.
Solution: Make the declared type list<any>. Also do this for other
functions returning a list of a specific type.
2022-02-05 18:12:34 +00:00
K.Takata
972db23279
patch 8.2.4294: MS-Windows: #ifdefs for Cygwin are too complicated
...
Problem: MS-Windows: #ifdefs for Cygwin are too complicated.
Solution: Simplify the conditions. (Ken Takata, closes #9693 )
2022-02-04 10:45:38 +00:00
Bram Moolenaar
381692b6f1
patch 8.2.4286: Vim9: strict type checking after copy() and deepcopy()
...
Problem: Vim9: strict type checking after copy() and deepcopy().
Solution: Allow type to change after making a copy. (closes #9644 )
2022-02-02 20:01:27 +00:00
Bram Moolenaar
8133018f50
patch 8.2.4279: Vim9: cannot change item type with map() after range()
...
Problem: Vim9: cannot change item type with map() after range().
Solution: Split the return type in current type and declared type.
(closes #9665 )
2022-02-01 12:11:58 +00:00
Yegappan Lakshmanan
9e0208f51c
patch 8.2.4276: separate test function for the GUI scrollbar
...
Problem: Separate test function for the GUI scrollbar.
Solution: Use test_gui_event(). (Yegappan Lakshmanan, closes #9674 )
2022-01-31 17:40:55 +00:00
Bram Moolenaar
424bcae1fb
patch 8.2.4273: the EBCDIC support is outdated
...
Problem: The EBCDIC support is outdated.
Solution: Remove the EBCDIC support.
2022-01-31 14:59:41 +00:00
ichizok
672776dbe8
patch 8.2.4270: generating nv_cmdidxs.h requires building Vim twice
...
Problem: Generating nv_cmdidxs.h requires building Vim twice.
Solution: Move the table into a separate file and use a separate executable
to extract the command characters. (Ozaki Kiichi, closes #9669 )
2022-01-31 12:27:18 +00:00
Yegappan Lakshmanan
06011e1a55
patch 8.2.4259: number of test functions for GUI events is growing
...
Problem: Number of test functions for GUI events is growing.
Solution: Use one function with a dictionary. (Yegappan Lakshmanan,
closes #9660 )
2022-01-30 12:37:29 +00:00
Bram Moolenaar
62aec93bfd
patch 8.2.4257: Vim9: finding global function without g: prefix inconsistent
...
Problem: Vim9: finding global function without g: prefix but not finding
global variable is inconsistent.
Solution: Require using g: for a global function. Change the vim9.vim
script into a Vim9 script with exports. Fix that import in legacy
script does not work.
2022-01-29 21:45:34 +00:00
=?UTF-8?q?Dundar=20G=C3=B6c?=
d5cec1f1f0
patch 8.2.4255: theoretical computation overflow
...
Problem: Theoretical computation overflow.
Solution: Perform multiplication in a wider type. (closes #9657 )
2022-01-29 15:19:23 +00:00
Yegappan Lakshmanan
4dc0dd8699
patch 8.2.4252: generating the normal command table at runtime is inefficient
...
Problem: Generating the normal command table at runtime is inefficient.
Solution: Generate the table with a Vim script and put it in a header file.
(Yegappan Lakshmanan, closes #9648 )
2022-01-29 13:06:40 +00:00
=?UTF-8?q?Dundar=20G=C3=B6c?=
420fabcd4f
patch 8.2.4241: some type casts are redundant
...
Problem: Some type casts are redundant.
Solution: Remove the type casts. (closes #9643 )
2022-01-28 15:28:04 +00:00