Bram Moolenaar
8aa0e6c60d
patch 8.2.4150: Coverity warns for using pointer after free
...
Problem: Coverity warns for using pointer after free.
Solution: Swap statements, even though using the pointer is no problem.
2022-01-20 11:27:58 +00:00
Bram Moolenaar
ca34db3bde
patch 8.2.4149: test override not restored, autocommand left behind
...
Problem: Test override not restored, autocommand left behind.
Solution: Correct restoring test override. Delete autocommand afterwards.
2022-01-20 11:17:18 +00:00
Bram Moolenaar
f61c89d2e6
patch 8.2.4148: deleting any mapping may cause <ScritpCmd> to fail
...
Problem: Deleting any mapping may cause <ScritpCmd> to not set the script
context.
Solution: Only reset last_used_map if it is the deleted mapping.
(closes #9568 )
2022-01-19 22:51:48 +00:00
Bram Moolenaar
bed34f0a8a
patch 8.2.4147: E464 does not always include the offending command
...
Problem: E464 does not always include the offending command.
Solution: Add another error message with "%s". (closes #9564 )
2022-01-19 20:48:37 +00:00
Bram Moolenaar
f67c717e34
patch 8.2.4146: Vim9: shadowed function can be used in compiled function
...
Problem: Vim9: shadowed function can be used in compiled function but not
at script level.
Solution: Also give an error in a compiled function. (closes #9563 )
2022-01-19 17:23:05 +00:00
Bram Moolenaar
937610bc9f
patch 8.2.4145: confusing error when using name of import for a function
...
Problem: Confusing error when using name of import for a function.
Solution: Pass a flag to trans_function_name().
2022-01-19 17:21:29 +00:00
K.Takata
1a8825d7a3
patch 8.2.4144: cannot load libsodium dynamically
...
Problem: Cannot load libsodium dynamically.
Solution: Support dynamic loading on MS-Windows. (Ken Takata, closes #9554 )
2022-01-19 13:32:57 +00:00
K.Takata
b0b2b73dca
patch 8.2.4143: MS-Windows: IME support for Win9x is obsolete
...
Problem: MS-Windows: IME support for Win9x is obsolete.
Solution: Remove the Win9x code. (Ken Takata, closes #9559 )
2022-01-19 12:59:21 +00:00
Bram Moolenaar
b4868eddd9
patch 8.2.4142: build failure with normal features without persistent undo
...
Problem: Build failure with normal features without persistent undo.
Solution: Adjust #ifdef. (closes #9557 )
2022-01-19 11:24:40 +00:00
Bram Moolenaar
17dd519633
patch 8.2.4141: Vim9 builtin functions test fails
...
Problem: Vim9 builtin functions test fails.
Solution: Add "scriptversion" item to maparg() result.
2022-01-18 21:42:37 +00:00
Bram Moolenaar
a9528b39a6
patch 8.2.4140: maparg() does not indicate the type of script
...
Problem: maparg() does not indicate the type of script where it was defined.
Solution: Add "scriptversion".
2022-01-18 20:51:35 +00:00
Bram Moolenaar
94075b2b0e
patch 8.2.4139: using freed memory in expression abbreviation
...
Problem: Using freed memory if an expression abbreviation deletes the
abbreviation.
Solution: Do not access the pointer after evaluating the expression.
2022-01-18 20:30:39 +00:00
Bram Moolenaar
ef7aadbe36
patch 8.2.4138: Vim9: no error for return with argument when invalid
...
Problem: Vim9: no error for return with argument when the function does not
return anything.
Solution: Give an error for the invalid argument. (issue #9497 )
2022-01-18 18:46:07 +00:00
Bram Moolenaar
d02dce2bb5
patch 8.2.4137: Vim9: calling import with and without method is inconsistent
...
Problem: Vim9: calling import with and without method is inconsistent.
Solution: Set a flag that a parenthsis follows to compile_load_scriptvar().
Add some more tests. Improve error message.
2022-01-18 17:43:04 +00:00
Bram Moolenaar
fd218c8a36
patch 8.2.4136: Vim9: the "autoload" argument of ":vim9script" is not useful
...
Problem: Vim9: the "autoload" argument of ":vim9script" is not useful.
Solution: Remove the argument. (closes #9555 )
2022-01-18 16:26:24 +00:00
Bram Moolenaar
6079da7cfb
patch 8.2.4135: Vim9: ":scriptnames" shows unloaded imported autoload script
...
Problem: Vim9: ":scriptnames" shows unloaded imported autoload script.
Solution: Mark the unloaded script with "A". (closes #9552 )
2022-01-18 14:16:59 +00:00
Bram Moolenaar
113b8dc111
patch 8.2.4134: MS-Windows: test for import with absolute path fails
...
Problem: MS-Windows: test for import with absolute path fails.
Solution: Handle path starting with slash as an absolute path.
2022-01-18 13:43:58 +00:00
Bram Moolenaar
840f16202e
patch 8.2.4133: output of ":scriptnames" goes into the message history
...
Problem: output of ":scriptnames" goes into the message history, while this
des not happen for other commands, such as ":ls".
Solution: Use msg_outtrans() instead of smsg(). (closes #9551 )
2022-01-18 13:34:05 +00:00
Bram Moolenaar
1836d61578
patch 8.2.4132: Vim9: wrong error message when autoload script can't be found
...
Problem: Vim9: wrong error message when autoload script can't be found.
Solution: Correct check for using autoload with wrong name.
2022-01-18 13:14:47 +00:00
Bram Moolenaar
cbbc48f64b
patch 8.2.4131: Vim9: calling function in autoload import does not work
...
Problem: Vim9: calling function in autoload import does not work in a :def
function.
Solution: When a variable is not found and a PCALL follows use a funcref.
(closes #9550 )
2022-01-18 12:58:28 +00:00
K.Takata
31dcc8de46
patch 8.2.4130: MS-Windows: MSVC build may have libraries duplicated
...
Problem: MS-Windows: MSVC build may have libraries duplicated.
Solution: Improve the MSVC Makefile. (Ken Takata, closes #9547 )
2022-01-18 11:34:57 +00:00
Bram Moolenaar
1247126956
patch 8.2.4129: building with +sound but without +eval fails
...
Problem: Building with +sound but without +eval fails. (Dominique Pellé)
Solution: Disable canberra in tiny and small build. (closes #9548 )
2022-01-18 11:11:25 +00:00
Bram Moolenaar
64283d5e1f
patch 8.2.4128: crash when method cannot be found
...
Problem: Crash when method cannot be found. (Christian J. Robinson)
Solution: Don't mix up pointer names.
2022-01-18 10:37:29 +00:00
Bram Moolenaar
78f60322f7
patch 8.2.4127: build failure without the +eval feature
...
Problem: Build failure without the +eval feature.
Solution: Add #ifdef.
2022-01-17 22:16:33 +00:00
Bram Moolenaar
afa76e1cf2
patch 8.2.4126: crash on exit when built with dynamic Tcl
...
Problem: Crash on exit when built with dynamic Tcl and EXITFREE is defined.
(Dominique Pellé)
Solution: Only call Tcl_Finalize() when initialized. (closes #9546 )
2022-01-17 21:34:38 +00:00
Bram Moolenaar
b3d9ceed2b
patch 8.2.4125: completion tests fail
...
Problem: Completion tests fail.
Solution: Disable error messages while dereferencing the function name.
2022-01-17 21:13:28 +00:00
Bram Moolenaar
6389baa669
patch 8.2.4124: Vim9: method in compiled function may not see script item
...
Problem: Vim9: method in compiled function may not see script item.
Solution: Make sure not to skip to the next line. (closes #9496 )
2022-01-17 20:50:40 +00:00
Bram Moolenaar
15d1635e50
patch 8.2.4123: complete function cannot be import.Name
...
Problem: Complete function cannot be import.Name.
Solution: Dereference the function name if needed. Also: do not see
"import.Name" as a builtin function. (closes #9541 )
2022-01-17 20:09:08 +00:00
Bram Moolenaar
3f3597be3f
patch 8.2.4122: ":command Cmd" does not show custom completion argument
...
Problem: ":command Cmd" does not show custom completion argument.
Solution: Show the completion argument when using ":verbose".
2022-01-17 19:06:56 +00:00
Bram Moolenaar
262898ae43
patch 8.2.4121: Visual test fails on MS-Windows
...
Problem: Visual test fails on MS-Windows.
Solution: Set 'isprint' so that the character used is not printable.
2022-01-17 17:52:22 +00:00
Bram Moolenaar
9f8c304c8a
patch 8.2.4120: block insert goes over the end of the line
...
Problem: Block insert goes over the end of the line.
Solution: Handle invalid byte better. Fix inserting the wrong text.
2022-01-17 17:30:21 +00:00
Dominique Pelle
e8741a73e2
patch 8.2.4119: build failure when disabling the channel feature
...
Problem: Build failure when disabling the channel feature.
Solution: Adjust #ifdef. (Dominique Pellé, closes #9545 )
2022-01-17 11:23:45 +00:00
Bram Moolenaar
0023f82a76
patch 8.2.4118: using UNUSED for argument that is used
...
Problem: Using UNUSED for argument that is used.
Solution: Remove UNUSED.
2022-01-16 21:54:19 +00:00
Bram Moolenaar
47036b6bd7
patch 8.2.4117: Vim9: wrong white space error after using imported item
...
Problem: Vim9: wrong white space error after using imported item.
Solution: Don't skip over white space. (closes #9544 )
2022-01-16 21:18:53 +00:00
Bram Moolenaar
c73499351a
patch 8.2.4116: Vim9: cannot use a method with a complex expression in :def
...
Problem: Vim9: cannot use a method with a complex expression in a :def
function.
Solution: Implement compiling the expression.
2022-01-16 20:59:39 +00:00
Bram Moolenaar
c665dabdf4
patch 8.2.4115: cannot use a method with a complex expression
...
Problem: Cannot use a method with a complex expression.
Solution: Evaluate the expression after "->" and use the result.
2022-01-16 19:38:07 +00:00
Bram Moolenaar
c84287d6d8
patch 8.2.4114: Vim9: type checking for a funcref does not work for method
...
Problem: Vim9: type checking for a funcref does not work for when it is
used in a method.
Solution: Pass the base to where the type is checked.
2022-01-16 18:06:21 +00:00
Bram Moolenaar
dc98776f89
patch 8.2.4113: typo on DOCMD_RANGEOK results in not recognizing command
...
Problem: Typo on DOCMD_RANGEOK results in not recognizing command.
Solution: Correct the typo. (closes #9539 )
2022-01-16 15:52:35 +00:00
Bram Moolenaar
d9b74a2a41
patch 8.2.4112: function not deleted at end of test
...
Problem: Function not deleted at end of test.
Solution: Delete the function.
2022-01-16 15:00:08 +00:00
Bram Moolenaar
d648c01f2f
patch 8.2.4111: potential proglem when map is deleted while executing
...
Problem: Potential proglem when map is deleted while executing.
Solution: Reset last used map pointer when deleting a mapping.
2022-01-16 14:58:34 +00:00
Bram Moolenaar
8f9956994d
patch 8.2.4110: Coverity warns for using NULL pointer
...
Problem: Coverity warns for using NULL pointer.
Solution: Check "evalarg" is not NULL. Skip errors when "verbose" is false.
2022-01-16 14:51:30 +00:00
K.Takata
c81e9bf4f0
patch 8.2.4109: MS-Windows: high dpi support is outdated
...
Problem: MS-Windows: high dpi support is outdated.
Solution: Improve High DPI support by using PerMonitorV2. (closes #9525 ,
closes #3102 )
2022-01-16 14:15:49 +00:00
Bram Moolenaar
f6ebc82004
patch 8.2.4108: going over the end of the w_lines array
...
Problem: Going over the end of the w_lines array.
Solution: Check not going over the end and limit to Rows. (issue #9540 )
2022-01-16 13:58:33 +00:00
Bram Moolenaar
a9725221ac
patch 8.2.4107: script context not restored after using <ScriptCmd>
...
Problem: Script context not restored after using <ScriptCmd>.
Solution: Also restore context when not in a script. (closes #9536 )
Add the 'c' flag to feedkeys() to be able to test this.
2022-01-16 13:30:33 +00:00
Bram Moolenaar
fa1a457059
patch 8.2.4106: going over the end of the w_lines array
...
Problem: Going over the end of the w_lines array.
Solution: Break out of the loop when "idx" is too big. (issue #9540 )
2022-01-16 11:42:20 +00:00
K.Takata
b5988e3656
patch 8.2.4105: translation related comment in the wrong place
...
Problem: Translation related comment in the wrong place.
Solution: Move it back with the text. (Ken Takata, closes #9537 )
2022-01-16 11:25:26 +00:00
Bram Moolenaar
bfac409d0b
patch 8.2.4104: Vim9: lower casing the autoload prefix causes problems
...
Problem: Vim9: lower casing the autoload prefix causes problems.
Solution: Always store the prefix with case preserved.
2022-01-16 11:12:12 +00:00
Bram Moolenaar
38ecd97226
patch 8.2.4103: Vim9: variable declared in for loop not initialzed
...
Problem: Vim9: variable declared in for loop not initialzed.
Solution: Always initialze the variable. (closes #9535 )
2022-01-15 21:44:44 +00:00
Bram Moolenaar
857c8bb1bb
patch 8.2.4102: Vim9: import cannot be used after method
...
Problem: Vim9: import cannot be used after method.
Solution: Recognize an imported function name. (closes #9496 )
2022-01-15 21:08:19 +00:00
Bram Moolenaar
d4e2f50901
patch 8.2.4101: warning for unused argument in tiny version
...
Problem: Warning for unused argument in tiny version.
Solution: Add "UNUSED".
2022-01-15 18:48:32 +00:00