]>
granicus.if.org Git - vim/log
Bram Moolenaar [Tue, 18 Jan 2022 13:34:05 +0000 (13:34 +0000)]
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)
Bram Moolenaar [Tue, 18 Jan 2022 13:14:47 +0000 (13:14 +0000)]
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.
Bram Moolenaar [Tue, 18 Jan 2022 12:58:28 +0000 (12:58 +0000)]
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)
K.Takata [Tue, 18 Jan 2022 11:34:57 +0000 (11:34 +0000)]
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)
Bram Moolenaar [Tue, 18 Jan 2022 11:11:25 +0000 (11:11 +0000)]
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)
Bram Moolenaar [Tue, 18 Jan 2022 10:37:29 +0000 (10:37 +0000)]
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.
Bram Moolenaar [Mon, 17 Jan 2022 22:16:33 +0000 (22:16 +0000)]
patch 8.2.4127: build failure without the +eval feature
Problem: Build failure without the +eval feature.
Solution: Add #ifdef.
Bram Moolenaar [Mon, 17 Jan 2022 21:34:38 +0000 (21:34 +0000)]
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)
Bram Moolenaar [Mon, 17 Jan 2022 21:13:28 +0000 (21:13 +0000)]
patch 8.2.4125: completion tests fail
Problem: Completion tests fail.
Solution: Disable error messages while dereferencing the function name.
Bram Moolenaar [Mon, 17 Jan 2022 20:50:40 +0000 (20:50 +0000)]
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)
Bram Moolenaar [Mon, 17 Jan 2022 20:09:08 +0000 (20:09 +0000)]
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)
Bram Moolenaar [Mon, 17 Jan 2022 19:06:56 +0000 (19:06 +0000)]
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".
Bram Moolenaar [Mon, 17 Jan 2022 17:52:22 +0000 (17:52 +0000)]
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.
Bram Moolenaar [Mon, 17 Jan 2022 17:30:21 +0000 (17:30 +0000)]
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.
Dominique Pelle [Mon, 17 Jan 2022 11:23:45 +0000 (11:23 +0000)]
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)
Bram Moolenaar [Sun, 16 Jan 2022 21:54:19 +0000 (21:54 +0000)]
patch 8.2.4118: using UNUSED for argument that is used
Problem: Using UNUSED for argument that is used.
Solution: Remove UNUSED.
Bram Moolenaar [Sun, 16 Jan 2022 21:18:53 +0000 (21:18 +0000)]
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)
Bram Moolenaar [Sun, 16 Jan 2022 20:59:39 +0000 (20:59 +0000)]
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.
Bram Moolenaar [Sun, 16 Jan 2022 19:38:07 +0000 (19:38 +0000)]
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.
Bram Moolenaar [Sun, 16 Jan 2022 18:06:21 +0000 (18:06 +0000)]
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.
Bram Moolenaar [Sun, 16 Jan 2022 15:52:35 +0000 (15:52 +0000)]
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)
Bram Moolenaar [Sun, 16 Jan 2022 15:00:08 +0000 (15:00 +0000)]
patch 8.2.4112: function not deleted at end of test
Problem: Function not deleted at end of test.
Solution: Delete the function.
Bram Moolenaar [Sun, 16 Jan 2022 14:58:34 +0000 (14:58 +0000)]
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.
Bram Moolenaar [Sun, 16 Jan 2022 14:51:30 +0000 (14:51 +0000)]
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.
Bram Moolenaar [Sun, 16 Jan 2022 14:46:06 +0000 (14:46 +0000)]
Update runtime files
K.Takata [Sun, 16 Jan 2022 14:15:49 +0000 (14:15 +0000)]
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)
Bram Moolenaar [Sun, 16 Jan 2022 13:58:33 +0000 (13:58 +0000)]
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)
Bram Moolenaar [Sun, 16 Jan 2022 13:30:33 +0000 (13:30 +0000)]
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.
Bram Moolenaar [Sun, 16 Jan 2022 11:42:20 +0000 (11:42 +0000)]
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)
K.Takata [Sun, 16 Jan 2022 11:25:26 +0000 (11:25 +0000)]
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)
Bram Moolenaar [Sun, 16 Jan 2022 11:12:12 +0000 (11:12 +0000)]
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.
Bram Moolenaar [Sat, 15 Jan 2022 21:44:44 +0000 (21:44 +0000)]
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)
Bram Moolenaar [Sat, 15 Jan 2022 21:08:19 +0000 (21:08 +0000)]
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)
Bram Moolenaar [Sat, 15 Jan 2022 18:48:32 +0000 (18:48 +0000)]
patch 8.2.4101: warning for unused argument in tiny version
Problem: Warning for unused argument in tiny version.
Solution: Add "UNUSED".
Bram Moolenaar [Sat, 15 Jan 2022 18:31:43 +0000 (18:31 +0000)]
patch 8.2.4100: early return when getting the 'formatlistpat' value
Problem: Early return when getting the 'formatlistpat' value.
Solution: Remove the first line. (Christian Brabandt)
Bram Moolenaar [Sat, 15 Jan 2022 18:26:04 +0000 (18:26 +0000)]
patch 8.2.4099: Vim9: cannot use Vim9 syntax in mapping
Problem: Vim9: cannot use Vim9 syntax in mapping.
Solution: Add <ScriptCmd> to use the script context for a command.
Bram Moolenaar [Sat, 15 Jan 2022 15:23:44 +0000 (15:23 +0000)]
patch 8.2.4098: typing "interrupt" at debug prompt may keep exception around
Problem: Typing "interrupt" at debug prompt may keep exception around,
causing function calls to fail.
Solution: Discard any exception at the toplevel. (closes #9532)
Bram Moolenaar [Sat, 15 Jan 2022 14:16:37 +0000 (14:16 +0000)]
patch 8.2.4097: wrong number in error message on 32 bit system
Problem: Wrong number in error message on 32 bit system. (John Paul Adrian
Glaubitz)
Solution: Add type cast. (closes #9527)
ichizok [Sat, 15 Jan 2022 13:37:14 +0000 (13:37 +0000)]
patch 8.2.4096: Linux CI: unnecessarily installing packages
Problem: Linux CI: unnecessarily installing packages
Solution: Only install packages for huge build. (Ozaki Kiichi,
closes #9530)
Bram Moolenaar [Sat, 15 Jan 2022 12:27:09 +0000 (12:27 +0000)]
patch 8.2.4095: sed script not recognized by the first line
Problem: Sed script not recognized by the first line.
Solution: Recognize a sed script starting with "#n". (Doug Kearns)
zeertzjq [Sat, 15 Jan 2022 10:52:16 +0000 (10:52 +0000)]
patch 8.2.4094: 'virtualedit' is window-local but using buffer-local enum
Problem: 'virtualedit' is window-local but using buffer-local enum.
Solution: Use window-local enum. (closes #9529)
Christian Brabandt [Sat, 15 Jan 2022 10:01:05 +0000 (10:01 +0000)]
patch 8.2.4093: cached breakindent values not initialized properly
Problem: Cached breakindent values not initialized properly.
Solution: Initialize and cache formatlistpat. (Christian Brabandt,
closes #9526, closes #9512)
ichizok [Fri, 14 Jan 2022 21:28:59 +0000 (21:28 +0000)]
patch 8.2.4092: MacOS CI: unnecessarily doing "Install packages"
Problem: MacOS CI: unnecessarily doing "Install packages".
Solution: Only do "Install packages" for huge build. (Ozaki Kiichi,
closes #9521)
zeertzjq [Fri, 14 Jan 2022 20:11:38 +0000 (20:11 +0000)]
patch 8.2.4091: virtcol is recomputed for statusline unnecessarily
Problem: Virtcol is recomputed for statusline unnecessarily.
Solution: Just use "w_virtcol". (closes #9523)
Evgeni Chasnovski [Fri, 14 Jan 2022 13:19:43 +0000 (13:19 +0000)]
patch 8.2.4090: after restoring a session buffer order can be quite different
Problem: After restoring a session buffer order can be quite different.
Solution: Create buffers first. (Evgeni Chasnovski, closes #9520)
Bram Moolenaar [Fri, 14 Jan 2022 12:06:47 +0000 (12:06 +0000)]
patch 8.2.4089: terminal test for current directory fails on FreeBSD
Problem: Terminal test for current directory fails on FreeBSD.
Solution: Skip the test.
Erik Auerswald [Fri, 14 Jan 2022 11:58:48 +0000 (11:58 +0000)]
patch 8.2.4088: xxd cannot output everything in one line
Problem: Xxd cannot output everything in one line.
Solution: Make zero columns mean infinite columns. (Erik Auerswald,
closes #9524)
Bram Moolenaar [Thu, 13 Jan 2022 22:05:09 +0000 (22:05 +0000)]
patch 8.2.4087: cannot test items from an autoload script easily
Problem: Cannot test items from an autoload script easily.
Solution: Add the "autoload" value for test_override().
Bram Moolenaar [Thu, 13 Jan 2022 21:15:21 +0000 (21:15 +0000)]
patch 8.2.4086: "cctx" argument of find_func_even_dead() is unused
Problem: "cctx" argument of find_func_even_dead() is unused.
Solution: Remove the argument.
Bram Moolenaar [Thu, 13 Jan 2022 20:51:56 +0000 (20:51 +0000)]
patch 8.2.4085: Vim9: no test for using import in legacy script
Problem: Vim9: no test for using import in legacy script.
Solution: Add a test.
Bram Moolenaar [Thu, 13 Jan 2022 20:39:41 +0000 (20:39 +0000)]
patch 8.2.4084: memory leak when looking for autoload prefixed variable
Problem: Memory leak when looking for autoload prefixed variable.
Solution: Free the concatenated string.
Bram Moolenaar [Thu, 13 Jan 2022 20:18:56 +0000 (20:18 +0000)]
patch 8.2.4083: Vim9: no test for "vim9script autoload' using script variable
Problem: Vim9: no test for "vim9script autoload' and using script variable
in the same script.
Solution: Add a simple test. Fix uncovered problem.
Bram Moolenaar [Thu, 13 Jan 2022 19:25:50 +0000 (19:25 +0000)]
patch 8.2.4082: check for autoload file name and prefix fails
Problem: Check for autoload file name and prefix fails. (Christian J.
Robinson)
Solution: Only lower case the prefix on systems where the file name is not
case sensitive.
ichizok [Thu, 13 Jan 2022 18:09:11 +0000 (18:09 +0000)]
patch 8.2.4081: CodeQL reports problem in if_cscope causing it to fail
Problem: CodeQL reports problem in if_cscope causing it to fail.
Solution: Use execvp() instead of execl(). Merge the header file into the
source file. (Ozaki Kiichi, closes #9519)
Erik Auerswald [Thu, 13 Jan 2022 17:42:28 +0000 (17:42 +0000)]
patch 8.2.4080: not sufficient test coverage for xxd
Problem: Not sufficient test coverage for xxd.
Solution: Add a few more test cases. (Erki Auerswald, closes #9515)
K.Takata [Thu, 13 Jan 2022 16:06:45 +0000 (16:06 +0000)]
patch 8.2.4079: MS-Windows: "gvim --version" didn't work with VIMDLL
Problem: MS-Windows: "gvim --version" didn't work when build with VIMDLL.
Solution: Adjust #ifdef. (Ken Takata, closes #9517)
Bram Moolenaar [Thu, 13 Jan 2022 15:25:32 +0000 (15:25 +0000)]
patch 8.2.4078: terminal test for current directory not used on FreeBSD
Problem: Terminal test for current directory not used on FreeBSD.
Solution: Make it work on FreeBSD. (Ozaki Kiichi, closes #9516) Add
TermWait() inside Run_shell_in_terminal() as a generic solution.
Bram Moolenaar [Thu, 13 Jan 2022 14:49:10 +0000 (14:49 +0000)]
patch 8.2.4077: not all Libsensors files are recognized
Problem: Not all Libsensors files are recognized.
Solution: Add "sensors.d/*" pattern. (Doug Kearns)
Bram Moolenaar [Thu, 13 Jan 2022 13:47:43 +0000 (13:47 +0000)]
patch 8.2.4076: memory leak in autoload import
Problem: Memory leak in autoload import.
Solution: Do not overwrite the autoload prefix.
Bram Moolenaar [Thu, 13 Jan 2022 13:24:34 +0000 (13:24 +0000)]
patch 8.2.4075: test failures
Problem: Test failures.
Solution: Change check for NULL pointer.
Bram Moolenaar [Thu, 13 Jan 2022 13:08:14 +0000 (13:08 +0000)]
patch 8.2.4074: going over the end of NameBuff
Problem: Going over the end of NameBuff.
Solution: Check length when appending a space.
Bram Moolenaar [Thu, 13 Jan 2022 12:05:09 +0000 (12:05 +0000)]
patch 8.2.4073: Coverity warns for using NULL pointer
Problem: Coverity warns for using NULL pointer.
Solution: Bail out when running out of memory. Check for running over end of
a string.
Bram Moolenaar [Wed, 12 Jan 2022 19:54:00 +0000 (19:54 +0000)]
patch 8.2.4072: Vim9: compiling function fails when autoload is not loaded
Problem: Vim9: compiling function fails when autoload script is not loaded
yet.
Solution: Depend on runtime loading.
Bram Moolenaar [Wed, 12 Jan 2022 16:18:18 +0000 (16:18 +0000)]
patch 8.2.4071: Vim9: no detection of return in try/endtry
Problem: Vim9: no detection of return in try/endtry. (Dominique Pellé)
Solution: Check if any of the blocks inside try/endtry did not end in
return.
Dominique Pelle [Wed, 12 Jan 2022 15:24:40 +0000 (15:24 +0000)]
patch 8.2.4070: using uninitialized memory when reading empty file
Problem: Using uninitialized memory when reading empty file.
Solution: Check for empty file before checking for NL. (Dominique Pellé,
closes #9511)
Bram Moolenaar [Wed, 12 Jan 2022 15:15:27 +0000 (15:15 +0000)]
patch 8.2.4069: Vim9: import test fails on MS-Windows
Problem: Vim9: import test fails on MS-Windows.
Solution: Ignore case. Adjust test to avoid name that only differs in case.
Bram Moolenaar [Wed, 12 Jan 2022 12:54:55 +0000 (12:54 +0000)]
patch 8.2.4068: Vim9: import test fails
Problem: Vim9: import test fails.
Solution: Add missing change.
Bram Moolenaar [Wed, 12 Jan 2022 12:48:17 +0000 (12:48 +0000)]
patch 8.2.4067: Vim9: cannot call imported function with :call
Problem: Vim9: cannot call imported function with :call. (Drew Vogel)
Solution: Translate the function name. (closes #9510)
Bram Moolenaar [Wed, 12 Jan 2022 11:46:40 +0000 (11:46 +0000)]
patch 8.2.4066: Vim9: imported autoload script loaded again
Problem: Vim9: imported autoload script loaded again.
Solution: Do not create a new imported_T every time.
Bram Moolenaar [Tue, 11 Jan 2022 19:34:16 +0000 (19:34 +0000)]
patch 8.2.4065: computation overflow with large cound for :yank
Problem: Computation overflow with large cound for :yank.
Solution: Avoid an overflow.
Elwardi [Tue, 11 Jan 2022 18:14:23 +0000 (18:14 +0000)]
patch 8.2.4064: foam files are not detected
Problem: Foam files are not detected.
Solution: Detect the foam filetype by the path and file contents. (Mohammed
Elwardi Fadeli, closes #9501)
Bram Moolenaar [Tue, 11 Jan 2022 15:24:05 +0000 (15:24 +0000)]
patch 8.2.4063: Vim9: exported function in autoload script not found
Problem: Vim9: exported function in autoload script not found. (Yegappan
Lakshmanan)
Solution: Use the autoload prefix to search for the function.
Bram Moolenaar [Tue, 11 Jan 2022 13:14:54 +0000 (13:14 +0000)]
patch 8.2.4062: match highlighting of tab too short
Problem: Match highlighting of tab too short.
Solution: Do not stop match highlighting if on a Tab. (Christian Brabandt,
closes #9507, closes #9500)
ichizok [Tue, 11 Jan 2022 13:05:26 +0000 (13:05 +0000)]
patch 8.2.4061: codecov bash script is deprecated
Problem: Codecov bash script is deprecated.
Solution: Use the codecov action. (Ozaki Kiichi, closes #9505)
Bram Moolenaar [Tue, 11 Jan 2022 12:37:20 +0000 (12:37 +0000)]
patch 8.2.4060: win_execute() slow on systems where getcwd()/chdir() is slow
Problem: win_execute() is slow on systems where getcwd() or chdir() is
slow. (Rick Howe)
Solution: Avoid using getcwd() and chdir() if no local directory is used and
'acd' is not set. (closes #9504)
Bram Moolenaar [Tue, 11 Jan 2022 11:58:19 +0000 (11:58 +0000)]
patch 8.2.4059: Vim9: an expression of a map cannot access script-local items
Problem: Vim9: an expression of a map cannot access script-local items.
(Maxim Kim)
Solution: Use the script ID of where the map was defined.
Bram Moolenaar [Mon, 10 Jan 2022 21:39:03 +0000 (21:39 +0000)]
patch 8.2.4058: Vim9: import test failure in wrong line
Problem: Vim9: import test failure in wrong line.
Solution: Adjust line number.
Bram Moolenaar [Mon, 10 Jan 2022 21:29:57 +0000 (21:29 +0000)]
patch 8.2.4057: Vim9: not fully implementing the autoload mechanism
Problem: Vim9: not fully implementing the autoload mechanism.
Solution: Allow for exporting a legacy function. Improve test coverage.
Bram Moolenaar [Mon, 10 Jan 2022 19:21:06 +0000 (19:21 +0000)]
patch 8.2.4056: Vim9: memory leak when exporting function in autoload script
Problem: Vim9: memory leak when exporting function in autoload script.
Solution: Fee the name if replacing it.
Bram Moolenaar [Mon, 10 Jan 2022 18:50:52 +0000 (18:50 +0000)]
patch 8.2.4055: Vim9: line break in expression causes v:errmsg to be fillec
Problem: Vim9: line break in expression causes v:errmsg to be filled.
(Yegappan Lakshmanan)
Solution: Do not give an error when skipping over an expression.
Bram Moolenaar [Mon, 10 Jan 2022 18:42:52 +0000 (18:42 +0000)]
patch 8.2.4054: Vim9 script test fails
Problem: Vim9 script test fails.
Solution: Add missing change.
Bram Moolenaar [Mon, 10 Jan 2022 18:08:00 +0000 (18:08 +0000)]
patch 8.2.4053: Vim9: autoload mechanism doesn't fully work yet
Problem: Vim9: autoload mechanism doesn't fully work yet.
Solution: Define functions and variables with their autoload name, add the
prefix when calling a function, find the variable in the table of
script variables.
Daniel Steinberg [Mon, 10 Jan 2022 13:36:34 +0000 (13:36 +0000)]
patch 8.2.4052: not easy to resize a window from a plugin
Problem: Not easy to resize a window from a plugin.
Solution: Add win_move_separator() and win_move_statusline() functions.
(Daniel Steinberg, closes #9486)
Bram Moolenaar [Mon, 10 Jan 2022 11:26:33 +0000 (11:26 +0000)]
patch 8.2.4051: compiler complains about possibly uninitialized variable
Problem: Compiler complains about possibly uninitialized variable.
Solution: Add code to avoid a compiler warning. (John Marriott)
Bram Moolenaar [Sun, 9 Jan 2022 21:36:37 +0000 (21:36 +0000)]
patch 8.2.4050: Vim9: need to prefix every item in an autoload script
Problem: Vim9: need to prefix every item in an autoload script.
Solution: First step in supporting "vim9script autoload" and "import
autoload".
Bram Moolenaar [Sun, 9 Jan 2022 13:36:28 +0000 (13:36 +0000)]
patch 8.2.4049: Vim9: reading before the start of the line with "$"
Problem: Vim9: reading before the start of the line with "$" by itself.
Solution: Do not subtract one when reporting the error.
Dominique Pelle [Sun, 9 Jan 2022 12:57:48 +0000 (12:57 +0000)]
patch 8.2.4048: gcc complains about use of "%p" in printf
Problem: gcc complains about use of "%p" in printf.
Solution: Add (void *) typecast. (Dominique Pellé, closes #9494)
Dominique Pelle [Sun, 9 Jan 2022 12:49:31 +0000 (12:49 +0000)]
patch 8.2.4047: depending on the build features error messages are unused
Problem: Depending on the build features error messages are unused.
Solution: Add #ifdefs. (Dominique Pellé, closes #9493)
Bram Moolenaar [Sat, 8 Jan 2022 21:51:59 +0000 (21:51 +0000)]
Update runtime files
Bram Moolenaar [Sat, 8 Jan 2022 21:38:52 +0000 (21:38 +0000)]
patch 8.2.4046: some error messages not in the right place
Problem: Some error messages not in the right place.
Solution: Adjust the errors file. Fix typo.
Yegappan Lakshmanan [Sat, 8 Jan 2022 18:43:40 +0000 (18:43 +0000)]
patch 8.2.4045: some global functions are only used in one file
Problem: Some global functions are only used in one file.
Solution: Make the functions static. (Yegappan Lakshmanan, closes #9492)
Bram Moolenaar [Sat, 8 Jan 2022 17:03:55 +0000 (17:03 +0000)]
patch 8.2.4044: Vim9: no error when importing the same script twice
Problem: Vim9: no error when importing the same script twice.
Solution: Give an error, unless it is a reload.
Bram Moolenaar [Sat, 8 Jan 2022 16:19:22 +0000 (16:19 +0000)]
patch 8.2.4043: using int for second argument of ga_init2()
Problem: Using int for second argument of ga_init2().
Solution: Remove unnessary type cast (int) when using sizeof().
Bram Moolenaar [Sat, 8 Jan 2022 16:02:59 +0000 (16:02 +0000)]
patch 8.2.4042: Vim9: build error
Problem: Vim9: build error.
Solution: Use grow array instead of character pointer.
Bram Moolenaar [Sat, 8 Jan 2022 15:44:22 +0000 (15:44 +0000)]
patch 8.2.4041: using unitialized pointer
Problem: Using unitialized pointer.
Solution: Store "ht" when variable is in another script.
Bram Moolenaar [Sat, 8 Jan 2022 15:39:39 +0000 (15:39 +0000)]
patch 8.2.4040: keeping track of allocated lines is too complicated
Problem: Keeping track of allocated lines in user functions is too
complicated.
Solution: Instead of freeing individual lines keep them all until the end.
Bram Moolenaar [Sat, 8 Jan 2022 13:36:57 +0000 (13:36 +0000)]
patch 8.2.4039: the xdiff library is linked in even when not used
Problem: The xdiff library is linked in even when not used.
Solution: Use configure to decide whether xdiff object files are included.
Dominique Pelle [Sat, 8 Jan 2022 12:41:16 +0000 (12:41 +0000)]
patch 8.2.4038: various code not used when features are disabled
Problem: Various code not used when features are disabled.
Solution: Add #ifdefs. (Dominique Pellé, closes #9491)
Yegappan Lakshmanan [Sat, 8 Jan 2022 10:38:48 +0000 (10:38 +0000)]
patch 8.2.4037: Insert mode completion is insufficiently tested
Problem: Insert mode completion is insufficiently tested.
Solution: Add more tests. Fix uncovered memory leak. (Yegappan Lakshmanan,
closes #9489)
Bram Moolenaar [Fri, 7 Jan 2022 21:39:52 +0000 (21:39 +0000)]
patch 8.2.4036: Vim9: script test file is getting too long
Problem: Vim9: script test file is getting too long.
Solution: Split the import/export functionality to a separate file.