]> granicus.if.org Git - vim/log
vim
3 years agopatch 8.2.4247: stack corruption when looking for spell suggestions v8.2.4247
Bram Moolenaar [Sat, 29 Jan 2022 10:51:59 +0000 (10:51 +0000)]
patch 8.2.4247: stack corruption when looking for spell suggestions

Problem:    Stack corruption when looking for spell suggestions.
Solution:   Prevent the depth increased too much.  Add a five second time
            limit to finding suggestions.

3 years agopatch 8.2.4246: one error message not in errors.h v8.2.4246
Bram Moolenaar [Fri, 28 Jan 2022 21:00:51 +0000 (21:00 +0000)]
patch 8.2.4246: one error message not in errors.h

Problem:    One error message not in errors.h. (Antonio Colombo)
Solution:   Move the message and rename.

3 years agopatch 8.2.4245: ":retab 0" may cause illegal memory access v8.2.4245
Bram Moolenaar [Fri, 28 Jan 2022 20:47:49 +0000 (20:47 +0000)]
patch 8.2.4245: ":retab 0" may cause illegal memory access

Problem:    ":retab 0" may cause illegal memory access.
Solution:   Limit the value of 'tabstop' to 10000.

3 years agopatch 8.2.4244: MS-Windows: warning from MSVC on debug build v8.2.4244
K.Takata [Fri, 28 Jan 2022 18:54:13 +0000 (18:54 +0000)]
patch 8.2.4244: MS-Windows: warning from MSVC on debug build

Problem:    MS-Windows: warning from MSVC on debug build.
Solution:   Adjust "/opt"o options.  Remove unused variables.  Make variables
            uppercase for consistency. (Ken Takata, closes #9647)

3 years agopatch 8.2.4243: Lua tests fail with Lua 5.4.4 v8.2.4243
=?UTF-8?q?Jakub=20Kul=C3=ADk?= [Fri, 28 Jan 2022 17:20:03 +0000 (17:20 +0000)]
patch 8.2.4243: Lua tests fail with Lua 5.4.4

Problem:    Lua tests fail with Lua 5.4.4.
Solution:   Check messages like before Lua 5.4.3. (Jakub KulĂ­k, closes #9652)

3 years agopatch 8.2.4242: put in Visual mode cannot be repeated v8.2.4242
Shougo Matsushita [Fri, 28 Jan 2022 16:01:13 +0000 (16:01 +0000)]
patch 8.2.4242: put in Visual mode cannot be repeated

Problem:    Put in Visual mode cannot be repeated.
Solution:   Use "P" to put without yanking the deleted text into the unnamed
            register. (Shougo Matsushita, closes #9591)

3 years agopatch 8.2.4241: some type casts are redundant v8.2.4241
=?UTF-8?q?Dundar=20G=C3=B6c?= [Fri, 28 Jan 2022 15:28:04 +0000 (15:28 +0000)]
patch 8.2.4241: some type casts are redundant

Problem:    Some type casts are redundant.
Solution:   Remove the type casts. (closes #9643)

3 years agopatch 8.2.4240: error for using flatten() in Vim9 script is unclear v8.2.4240
Bram Moolenaar [Fri, 28 Jan 2022 15:01:47 +0000 (15:01 +0000)]
patch 8.2.4240: error for using flatten() in Vim9 script is unclear

Problem:    Error for using flatten() in Vim9 script is unclear.
Solution:   Add a remark to use flattennew().

3 years agopatch 8.2.4239: build fails with unusual configuration v8.2.4239
Bram Moolenaar [Fri, 28 Jan 2022 14:39:58 +0000 (14:39 +0000)]
patch 8.2.4239: build fails with unusual configuration

Problem:    Build fails with unusual configuration.
Solution:   Adjust #ifdef. (closes #9651)

3 years agopatch 8.2.4238: *.tf file could be fileytpe "tf" or "terraform" v8.2.4238
=?UTF-8?q?Dundar=20G=C3=B6c?= [Fri, 28 Jan 2022 14:15:09 +0000 (14:15 +0000)]
patch 8.2.4238: *.tf file could be fileytpe "tf" or "terraform"

Problem:    *.tf file could be fileytpe "tf" or "terraform".
Solution:   Detect the type from the file contents. (closes #9642)

3 years agopatch 8.2.4237: record buffer wrong if character in Select mode was not typed v8.2.4237
zeertzjq [Fri, 28 Jan 2022 12:50:43 +0000 (12:50 +0000)]
patch 8.2.4237: record buffer wrong if character in Select mode was not typed

Problem:    Record buffer wrong if character in Select mode was not typed.
Solution:   Only delete the tail from the record buffer if the character was
            typed. (closes #9650)

3 years agopatch 8.2.4236: accessing freed memory v8.2.4236
Bram Moolenaar [Thu, 27 Jan 2022 21:56:40 +0000 (21:56 +0000)]
patch 8.2.4236: accessing freed memory

Problem:    Accessing freed memory.
Solution:   Set the bh_curr pointer to NULL.

3 years agopatch 8.2.4235: invalid check for NULL pointer v8.2.4235
Bram Moolenaar [Thu, 27 Jan 2022 20:47:03 +0000 (20:47 +0000)]
patch 8.2.4235: invalid check for NULL pointer

Problem:    Invalid check for NULL pointer.
Solution:   Remove the check.

3 years agopatch 8.2.4234: test_garbagecollect_now() does not check v:testing v8.2.4234
Bram Moolenaar [Thu, 27 Jan 2022 19:59:47 +0000 (19:59 +0000)]
patch 8.2.4234: test_garbagecollect_now() does not check v:testing

Problem:    test_garbagecollect_now() does not check v:testing as documented.
Solution:   Give an error if v:testing is not set.

3 years agopatch 8.2.4233: crash when recording and using Select mode v8.2.4233
Bram Moolenaar [Thu, 27 Jan 2022 19:27:16 +0000 (19:27 +0000)]
patch 8.2.4233: crash when recording and using Select mode

Problem:    Crash when recording and using Select mode.
Solution:   When deleting the last recorded character check there is something
            to delete.

3 years agopatch 8.2.4232: some compilers don't like a goto label without statement v8.2.4232
Bram Moolenaar [Thu, 27 Jan 2022 17:37:41 +0000 (17:37 +0000)]
patch 8.2.4232: some compilers don't like a goto label without statement

Problem:    Some compilers don't like a goto label without statement.
Solution:   Return instead of using a goto.

3 years agopatch 8.2.4231: Vim9: map() gives type error when type was not declared v8.2.4231
Bram Moolenaar [Thu, 27 Jan 2022 16:36:29 +0000 (16:36 +0000)]
patch 8.2.4231: Vim9: map() gives type error when type was not declared

Problem:    Vim9: map() gives type error when type was not declared.
Solution:   Only check the type when it was declared, like extend() does.
            (closes #9635)

3 years agopatch 8.2.4230: MS-Windows: set_guifontwide() is included but won't work v8.2.4230
K.Takata [Thu, 27 Jan 2022 15:04:22 +0000 (15:04 +0000)]
patch 8.2.4230: MS-Windows: set_guifontwide() is included but won't work

Problem:    MS-Windows: set_guifontwide() is included but won't work.
Solution:   Include set_guifontwide() only for X11. (Ken Takata, closes #9640)

3 years agopatch 8.2.4229: possible crash when invoking timer callback fails v8.2.4229
Bram Moolenaar [Thu, 27 Jan 2022 13:55:35 +0000 (13:55 +0000)]
patch 8.2.4229: possible crash when invoking timer callback fails

Problem:    Possible crash when invoking timer callback fails.
Solution:   Initialize the typval.  Give an error for an empty callback.
            (closes #9636)

3 years agopatch 8.2.4228: no tests for clicking in the GUI tabline v8.2.4228
Yegappan Lakshmanan [Thu, 27 Jan 2022 13:16:59 +0000 (13:16 +0000)]
patch 8.2.4228: no tests for clicking in the GUI tabline

Problem:    No tests for clicking in the GUI tabline.
Solution:   Add test functions to generate the events.  Add tests using the
            functions. (Yegappan Lakshmanan, closes #9638)

3 years agopatch 8.2.4227: Vim9: using "lockvar!" in :def function does not work v8.2.4227
Bram Moolenaar [Wed, 26 Jan 2022 21:32:59 +0000 (21:32 +0000)]
patch 8.2.4227: Vim9: using "lockvar!" in :def function does not work

Problem:    Vim9: using "lockvar!" in :def function does not work.
Solution:   Add "!" instead of "-1". (closes #9634)

3 years agopatch 8.2.4226: filter-map test fails v8.2.4226
Bram Moolenaar [Wed, 26 Jan 2022 21:17:04 +0000 (21:17 +0000)]
patch 8.2.4226: filter-map test fails

Problem:    Filter-map test fails.
Solution:   Only reject number argument in Vim9 script.

3 years agopatch 8.2.4225: Vim9: depth argument of :lockvar not parsed in :def function v8.2.4225
Bram Moolenaar [Wed, 26 Jan 2022 21:01:15 +0000 (21:01 +0000)]
patch 8.2.4225: Vim9: depth argument of :lockvar not parsed in :def function

Problem:    Vim9: depth argument of :lockvar not parsed in :def function.
Solution:   Parse the optional depth argument. (closes #9629)
            Fix that locking doesn't work for a non-materialize list.

3 years agopatch 8.2.4224: Vim9: no error when using a number for map() second argument v8.2.4224
Bram Moolenaar [Wed, 26 Jan 2022 18:26:21 +0000 (18:26 +0000)]
patch 8.2.4224: Vim9: no error when using a number for map() second argument

Problem:    Vim9: no error when using a number for map() second argument
Solution:   Disallow number to string conversion. (closes #9630)

3 years agopatch 8.2.4223: long/int compiler warnings; function arguments swapped v8.2.4223
K.Takata [Wed, 26 Jan 2022 16:45:20 +0000 (16:45 +0000)]
patch 8.2.4223: long/int compiler warnings; function arguments swapped

Problem:    Long/int compiler warnings; function arguments swapped.
Solution:   Add type casts.  Swap arguments. (Ken Takata, closes #9632)

3 years agopatch 8.2.4222: MS-Windows: clumsy way to suppress progress on CI v8.2.4222
K.Takata [Wed, 26 Jan 2022 16:20:21 +0000 (16:20 +0000)]
patch 8.2.4222: MS-Windows: clumsy way to suppress progress on CI

Problem:    MS-Windows: clumsy way to suppress progress on CI.
Solution:   Check for "$CI" in the Makefile itself. (Ken Takata, closes #9631)

3 years agopatch 8.2.4221: some functions in normal.c are very long v8.2.4221
Yegappan Lakshmanan [Wed, 26 Jan 2022 12:14:15 +0000 (12:14 +0000)]
patch 8.2.4221: some functions in normal.c are very long

Problem:    Some functions in normal.c are very long.
Solution:   Move code to separate functions. (Yegappan Lakshmanan,
            closes #9628)

3 years agopatch 8.2.4220: MS-Windows: some old compiler support remains v8.2.4220
K.Takata [Wed, 26 Jan 2022 11:16:52 +0000 (11:16 +0000)]
patch 8.2.4220: MS-Windows: some old compiler support remains

Problem:    MS-Windows: some old compiler support remains.
Solution:   Remove obsolete compiler support. (Ken Takata, closes #9627)

3 years agopatch 8.2.4219: reading before the start of the line v8.2.4219
Bram Moolenaar [Tue, 25 Jan 2022 21:26:17 +0000 (21:26 +0000)]
patch 8.2.4219: reading before the start of the line

Problem:    Reading before the start of the line.
Solution:   Check boundary before trying to read the character.

3 years agopatch 8.2.4218: illegal memory access with bracketed paste in Ex mode v8.2.4218
Bram Moolenaar [Tue, 25 Jan 2022 20:45:16 +0000 (20:45 +0000)]
patch 8.2.4218: illegal memory access with bracketed paste in Ex mode

Problem:    Illegal memory access with bracketed paste in Ex mode.
Solution:   Reserve space for the trailing NUL.

3 years agopatch 8.2.4217: illegal memory access when undo makes Visual area invalid v8.2.4217
Bram Moolenaar [Tue, 25 Jan 2022 18:24:00 +0000 (18:24 +0000)]
patch 8.2.4217: illegal memory access when undo makes Visual area invalid

Problem:    Illegal memory access when undo makes Visual area invalid.
Solution:   Correct the Visual area after undo.

3 years agopatch 8.2.4216: Vim9: cannot use a function from an autoload import directly v8.2.4216
Bram Moolenaar [Tue, 25 Jan 2022 15:51:56 +0000 (15:51 +0000)]
patch 8.2.4216: Vim9: cannot use a function from an autoload import directly

Problem:    Vim9: cannot use a function from an autoload import directly.
Solution:   Add the AUTOLOAD instruction to figure out at runtime.
            (closes #9620)

3 years agopatch 8.2.4215: illegal memory access when copying lines in Visual mode v8.2.4215
Bram Moolenaar [Tue, 25 Jan 2022 13:52:53 +0000 (13:52 +0000)]
patch 8.2.4215: illegal memory access when copying lines in Visual mode

Problem:    Illegal memory access when copying lines in Visual mode.
Solution:   Adjust the Visual position after copying lines.

3 years agopatch 8.2.4214: illegal memory access with large 'tabstop' in Ex mode v8.2.4214
Bram Moolenaar [Tue, 25 Jan 2022 11:55:02 +0000 (11:55 +0000)]
patch 8.2.4214: illegal memory access with large 'tabstop' in Ex mode

Problem:    Illegal memory access with large 'tabstop' in Ex mode.
Solution:   Allocate enough memory.

3 years agopatch 8.2.4213: too much code for supporting old MSVC versions v8.2.4213
K.Takata [Tue, 25 Jan 2022 10:31:37 +0000 (10:31 +0000)]
patch 8.2.4213: too much code for supporting old MSVC versions

Problem:    Too much code for supporting old MSVC versions.
Solution:   Remove MSVC 2003 support. (Ken Takata, closes #9623)

3 years agopatch 8.2.4212: window title test still fails in some configurations v8.2.4212
Bram Moolenaar [Mon, 24 Jan 2022 22:32:28 +0000 (22:32 +0000)]
patch 8.2.4212: window title test still fails in some configurations

Problem:    Window title test still fails in some configurations.
Solution:   Explicitly set the 'title' option.

3 years agopatch 8.2.4211: window title test still fails in some configurations v8.2.4211
Bram Moolenaar [Mon, 24 Jan 2022 22:18:24 +0000 (22:18 +0000)]
patch 8.2.4211: window title test still fails in some configurations

Problem:    Window title test still fails in some configurations.
Solution:   Use WaitForAssert().

3 years agopatch 8.2.4210: window title test fails in some configurations v8.2.4210
Bram Moolenaar [Mon, 24 Jan 2022 22:02:15 +0000 (22:02 +0000)]
patch 8.2.4210: window title test fails in some configurations

Problem:    Window title test fails in some configurations.
Solution:   Only run the test if the title can be obtained.

3 years agopatch 8.2.4209: partial in 'opfunc' cannot use an imported function v8.2.4209
Bram Moolenaar [Mon, 24 Jan 2022 21:28:01 +0000 (21:28 +0000)]
patch 8.2.4209: partial in 'opfunc' cannot use an imported function

Problem:    partial in 'opfunc' cannot use an imported function.
Solution:   Also expand the function name in a partial. (closes #9614)

3 years agopatch 8.2.4208: using setbufvar() may change the window title v8.2.4208
Bram Moolenaar [Mon, 24 Jan 2022 20:00:55 +0000 (20:00 +0000)]
patch 8.2.4208: using setbufvar() may change the window title

Problem:    Using setbufvar() may change the window title.
Solution:   Do not redraw when creating the autocommand window. (closes #9613)

3 years agopatch 8.2.4207: recursion test fails with MSVC v8.2.4207
Bram Moolenaar [Mon, 24 Jan 2022 18:36:39 +0000 (18:36 +0000)]
patch 8.2.4207: recursion test fails with MSVC

Problem:    Recursion test fails with MSVC.
Solution:   Use a smaller limit for MSVC.

3 years agopatch 8.2.4206: condition with many "(" causes a crash v8.2.4206
Bram Moolenaar [Mon, 24 Jan 2022 18:16:12 +0000 (18:16 +0000)]
patch 8.2.4206: condition with many "(" causes a crash

Problem:    Condition with many "(" causes a crash.
Solution:   Limit recursion to 1000.

3 years agopatch 8.2.4205: the normal_cmd() function is too long v8.2.4205
Yegappan Lakshmanan [Mon, 24 Jan 2022 16:30:30 +0000 (16:30 +0000)]
patch 8.2.4205: the normal_cmd() function is too long

Problem:    The normal_cmd() function is too long.
Solution:   Move parts to separate functions. (Yegappan Lakshmanan,
            closes #9608)

3 years agopatch 8.2.4204: screenpos() has non-zero row for invisible text v8.2.4204
Bram Moolenaar [Mon, 24 Jan 2022 16:15:15 +0000 (16:15 +0000)]
patch 8.2.4204: screenpos() has non-zero row for invisible text

Problem:    screenpos() has non-zero row for invisible text.
Solution:   Only add the window row when the text is visible. (closes #9618)

3 years agopatch 8.2.4203: entering a character with CTRL-V may include modifiers v8.2.4203
zeertzjq [Mon, 24 Jan 2022 15:27:50 +0000 (15:27 +0000)]
patch 8.2.4203: entering a character with CTRL-V may include modifiers

Problem:    Entering a character with CTRL-V may include modifiers.
Solution:   Reset "mod_mask" when entering a character with digits after
            CTRL-V. (closes #9610)

3 years agopatch 8.2.4202: Vim9: cannot export function that exists globally v8.2.4202
Bram Moolenaar [Mon, 24 Jan 2022 13:54:45 +0000 (13:54 +0000)]
patch 8.2.4202: Vim9: cannot export function that exists globally

Problem:    Vim9: cannot export function that exists globally.
Solution:   When checking if a function already exists only check for
            script-local functions. (closes #9615)

3 years agopatch 8.2.4201: when using the GUI CTRL-Z does not stop gvim v8.2.4201
Bram Moolenaar [Mon, 24 Jan 2022 12:20:45 +0000 (12:20 +0000)]
patch 8.2.4201: when using the GUI CTRL-Z does not stop gvim

Problem:    When using the GUI CTRL-Z does not stop gvim.
Solution:   When using the GUI set SIGTSTP to SIG_DFL. (Andrew Maltsev,
            closes #9570)

3 years agopatch 8.2.4200: some tests do not clean up properly v8.2.4200
Yegappan Lakshmanan [Mon, 24 Jan 2022 11:40:37 +0000 (11:40 +0000)]
patch 8.2.4200: some tests do not clean up properly

Problem:    Some tests do not clean up properly.
Solution:   Delete created files. (Yegappan Lakshmanan, closes #9611)

3 years agopatch 8.2.4199: MS-Windows: Support for MSVC 2003 is not useful v8.2.4199
K.Takata [Mon, 24 Jan 2022 11:24:08 +0000 (11:24 +0000)]
patch 8.2.4199: MS-Windows: Support for MSVC 2003 is not useful

Problem:    MS-Windows: Support for MSVC 2003 is not useful.
Solution:   Remove the exceptions for MSVC 2003. (Ken Takata, closes #9616)

3 years agopatch 8.2.4198: Vim9: the switch for executing instructions is too long v8.2.4198
Bram Moolenaar [Sun, 23 Jan 2022 20:00:42 +0000 (20:00 +0000)]
patch 8.2.4198: Vim9: the switch for executing instructions is too long

Problem:    Vim9: the switch for executing instructions is too long.
Solution:   Move some code to separate functions.

3 years agopatch 8.2.4197: cannot use an import in the "expr" part of 'spellsuggest' v8.2.4197
Bram Moolenaar [Sun, 23 Jan 2022 17:59:06 +0000 (17:59 +0000)]
patch 8.2.4197: cannot use an import in the "expr" part of 'spellsuggest'

Problem:    Cannot use an import in the "expr" part of 'spellsuggest'.
Solution:   Set the script context when evaluating "expr" of 'spellsuggest'.

3 years agopatch 8.2.4196: various file types not recognized v8.2.4196
=?UTF-8?q?Dundar=20G=C3=B6c?= [Sun, 23 Jan 2022 17:09:05 +0000 (17:09 +0000)]
patch 8.2.4196: various file types not recognized

Problem:    Various file types not recognized.
Solution:   Add patterns to recognize more file types (closes #9607)

3 years agopatch 8.2.4195: resizing terminal may cause to behave like CTRL-Z v8.2.4195
dbivolaru [Sun, 23 Jan 2022 16:41:14 +0000 (16:41 +0000)]
patch 8.2.4195: resizing terminal may cause to behave like CTRL-Z

Problem:    Resizing terminal may cause to behave like CTRL-Z.
Solution:   Set "got_tstp" only when in_mch_suspend is set. (Dorian Bivolaru,
            closes #9602, closes #9586)

3 years agopatch 8.2.4194: MS-Windows: code for calculating font size is duplicated v8.2.4194
K.Takata [Sun, 23 Jan 2022 16:25:17 +0000 (16:25 +0000)]
patch 8.2.4194: MS-Windows: code for calculating font size is duplicated

Problem:    MS-Windows: code for calculating font size is duplicated.
Solution:   Move the code to a function. (Ken Takata, closes #9603)

3 years agopatch 8.2.4193: cannot use an import in 'charconvert' v8.2.4193
Bram Moolenaar [Sun, 23 Jan 2022 14:17:28 +0000 (14:17 +0000)]
patch 8.2.4193: cannot use an import in 'charconvert'

Problem:    Cannot use an import in 'charconvert'.
Solution:   Set the script context when evaluating 'charconvert'.  Also expand
            script-local functions in 'charconvert'.

3 years agopatch 8.2.4192: cannot use an import in 'printexpr' v8.2.4192
Bram Moolenaar [Sun, 23 Jan 2022 13:44:35 +0000 (13:44 +0000)]
patch 8.2.4192: cannot use an import in 'printexpr'

Problem:    Cannot use an import in 'printexpr'.
Solution:   Set the script context when evaluating 'printexpr'.

3 years agopatch 8.2.4191: json5 files are not recognized v8.2.4191
=?UTF-8?q?Dundar=20G=C3=B6c?= [Sun, 23 Jan 2022 13:05:39 +0000 (13:05 +0000)]
patch 8.2.4191: json5 files are not recognized

Problem:    json5 files are not recognized.
Solution:   Add a pattern for json5 files. (closes #9601)

3 years agopatch 8.2.4190: all conceal tests are skipped without the screendumps feature v8.2.4190
zeertzjq [Sun, 23 Jan 2022 12:42:55 +0000 (12:42 +0000)]
patch 8.2.4190: all conceal tests are skipped without the screendumps feature

Problem:    All conceal tests are skipped without the screendumps feature.
Solution:   Only skip the tests that use screendumps. (closes #9599)

3 years agopatch 8.2.4189: MS-Windows: code for "old look" is obsolete v8.2.4189
K.Takata [Sun, 23 Jan 2022 12:31:57 +0000 (12:31 +0000)]
patch 8.2.4189: MS-Windows: code for "old look" is obsolete

Problem:    MS-Windows: code for "old look" is obsolete.
Solution:   Delete obsolete code.  Use "MS Shell Dlg" font. (Ken Takata,
            closes #9596)

3 years agoUpdate runtime files
Bram Moolenaar [Sun, 23 Jan 2022 12:07:04 +0000 (12:07 +0000)]
Update runtime files

3 years agopatch 8.2.4188: not all gitconfig files are recognized v8.2.4188
Tim Pope [Sun, 23 Jan 2022 11:28:16 +0000 (11:28 +0000)]
patch 8.2.4188: not all gitconfig files are recognized

Problem:    Not all gitconfig files are recognized.
Solution:   Add a few more patterns. (Tim Pope, closes #9597)

3 years agopatch 8.2.4187: gnuplot file not recognized v8.2.4187
nobodyatandnothing [Sun, 23 Jan 2022 11:19:37 +0000 (11:19 +0000)]
patch 8.2.4187: gnuplot file not recognized

Problem:    Gnuplot file not recognized.
Solution:   Recognize ".gnuplot". (closes #9588)

3 years agopatch 8.2.4186: cannot use an import in 'patchexpr' v8.2.4186
Bram Moolenaar [Sat, 22 Jan 2022 20:55:30 +0000 (20:55 +0000)]
patch 8.2.4186: cannot use an import in 'patchexpr'

Problem:    Cannot use an import in 'patchexpr'.
Solution:   Set the script context when evaluating 'patchexpr'.  Do not
            require 'patchexpr' to return a bool, it was ignored anyway.

3 years agopatch 8.2.4185: cannot use an import in 'indentexpr' v8.2.4185
Bram Moolenaar [Sat, 22 Jan 2022 20:32:00 +0000 (20:32 +0000)]
patch 8.2.4185: cannot use an import in 'indentexpr'

Problem:    Cannot use an import in 'indentexpr'.
Solution:   Set the script context when evaluating 'indentexpr'

3 years agopatch 8.2.4184: cannot use an import in 'includeexpr' v8.2.4184
Bram Moolenaar [Sat, 22 Jan 2022 20:19:22 +0000 (20:19 +0000)]
patch 8.2.4184: cannot use an import in 'includeexpr'

Problem:    Cannot use an import in 'includeexpr'.
Solution:   Set the script context when evaluating 'includeexpr'

3 years agopatch 8.2.4183: cannot use an import in 'formatexpr' v8.2.4183
Bram Moolenaar [Sat, 22 Jan 2022 19:17:31 +0000 (19:17 +0000)]
patch 8.2.4183: cannot use an import in 'formatexpr'

Problem:    Cannot use an import in 'formatexpr'.
Solution:   Set the script context when evaluating 'formatexpr'.

3 years agopatch 8.2.4182: memory leak when evaluating 'diffexpr' v8.2.4182
Bram Moolenaar [Sat, 22 Jan 2022 18:21:36 +0000 (18:21 +0000)]
patch 8.2.4182: memory leak when evaluating 'diffexpr'

Problem:    Memory leak when evaluating 'diffexpr'.
Solution:   Use free_tv() instead of clear_tv().

3 years agopatch 8.2.4181: Vim9: cannot use an import in 'diffexpr' v8.2.4181
Bram Moolenaar [Sat, 22 Jan 2022 17:58:13 +0000 (17:58 +0000)]
patch 8.2.4181: Vim9: cannot use an import in 'diffexpr'

Problem:    Vim9: cannot use an import in 'diffexpr'.
Solution:   Set the script context when evaluating 'diffexpr'.  Do not require
            'diffexpr' to return a bool, it was ignored anyway.

3 years agopatch 8.2.4180: 'balloonexpr' is evaluated in the current script context v8.2.4180
Bram Moolenaar [Sat, 22 Jan 2022 15:09:36 +0000 (15:09 +0000)]
patch 8.2.4180: 'balloonexpr' is evaluated in the current script context

Problem:    'balloonexpr' is evaluated in the current script context.
Solution:   Use the script context where the option was set.

3 years agopatch 8.2.4179: 'foldtext' is evaluated in the current script context v8.2.4179
Bram Moolenaar [Sat, 22 Jan 2022 13:39:08 +0000 (13:39 +0000)]
patch 8.2.4179: 'foldtext' is evaluated in the current script context

Problem:    'foldtext' is evaluated in the current script context.
Solution:   Use the script context where the option was set.

3 years agopatch 8.2.4178: Vim9: invalid error for return type of lambda when debugging v8.2.4178
Bram Moolenaar [Sat, 22 Jan 2022 12:27:04 +0000 (12:27 +0000)]
patch 8.2.4178: Vim9: invalid error for return type of lambda when debugging

Problem:    Vim9: invalid error for return type of lambda when debugging.
Solution:   Do not check the return type of a lambda. (closes #9589)

3 years agopatch 8.2.4177: Vim9: autoload script not loaded after "vim9script noclear" v8.2.4177
Bram Moolenaar [Sat, 22 Jan 2022 11:27:29 +0000 (11:27 +0000)]
patch 8.2.4177: Vim9: autoload script not loaded after "vim9script noclear"

Problem:    Vim9: autoload script not loaded after "vim9script noclear".
Solution:   Check IMP_FLAGS_AUTOLOAD properly.

3 years agopatch 8.2.4176: Vim9: cannot use imported function with call() v8.2.4176
Bram Moolenaar [Sat, 22 Jan 2022 11:00:02 +0000 (11:00 +0000)]
patch 8.2.4176: Vim9: cannot use imported function with call()

Problem:    Vim9: cannot use imported function with call().
Solution:   Translate the function name. (closes #9590)

3 years agopatch 8.2.4175: MS-Windows: runtime check for multi-line balloon is obsolete v8.2.4175
Bram Moolenaar [Sat, 22 Jan 2022 10:24:47 +0000 (10:24 +0000)]
patch 8.2.4175: MS-Windows: runtime check for multi-line balloon is obsolete

Problem:    MS-Windows: runtime check for multi-line balloon is obsolete.
Solution:   Remove the obsolete code. (Ken Takata, closes #9592)

3 years agopatch 8.2.4174: Vim9: can use an autoload name in normal script v8.2.4174
Bram Moolenaar [Fri, 21 Jan 2022 20:37:05 +0000 (20:37 +0000)]
patch 8.2.4174: Vim9: can use an autoload name in normal script

Problem:    Vim9: can use an autoload name in normal script.
Solution:   Disallow using an autoload name.

3 years agopatch 8.2.4173: cannot use an import in 'foldexpr' v8.2.4173
Bram Moolenaar [Fri, 21 Jan 2022 16:31:11 +0000 (16:31 +0000)]
patch 8.2.4173: cannot use an import in 'foldexpr'

Problem:    Cannot use an import in 'foldexpr'.
Solution:   Set the script context to where 'foldexpr' was set. (closes #9584)
            Fix that the script context was not set for all buffers.

3 years agopatch 8.2.4172: filetype detection for BASIC is not optimal v8.2.4172
Bram Moolenaar [Fri, 21 Jan 2022 14:55:13 +0000 (14:55 +0000)]
patch 8.2.4172: filetype detection for BASIC is not optimal

Problem:    Filetype detection for BASIC is not optimal.
Solution:   Improve BASIC filetype detection. (Doug Kearns)

3 years agopatch 8.2.4171: cannot invoke option function using autoload import v8.2.4171
Bram Moolenaar [Fri, 21 Jan 2022 13:29:56 +0000 (13:29 +0000)]
patch 8.2.4171: cannot invoke option function using autoload import

Problem:    Cannot invoke option function using autoload import.
Solution:   Expand the import to an autoload function name. (closes #9578)

3 years agopatch 8.2.4170: MS-Windows: still using old message API calls v8.2.4170
K.Takata [Fri, 21 Jan 2022 11:37:07 +0000 (11:37 +0000)]
patch 8.2.4170: MS-Windows: still using old message API calls

Problem:    MS-Windows: still using old message API calls.
Solution:   Call the "W" functions directly. (Ken Takata, closes #9582)

3 years agopatch 8.2.4169: MS-Windows: unnessary casts and other minor things v8.2.4169
K.Takata [Fri, 21 Jan 2022 11:11:00 +0000 (11:11 +0000)]
patch 8.2.4169: MS-Windows: unnessary casts and other minor things

Problem:    MS-Windows: unnessary casts and other minor things.
Solution:   Clean up the MS-Windows code. (Ken Takata, closes #9583)

3 years agopatch 8.2.4168: disallowing empty function name breaks existing plugins v8.2.4168
Bram Moolenaar [Fri, 21 Jan 2022 10:32:58 +0000 (10:32 +0000)]
patch 8.2.4168: disallowing empty function name breaks existing plugins

Problem:    Disallowing empty function name breaks existing plugins.
Solution:   Allow empty function name in legacy script.

3 years agopatch 8.2.4167: Vim9: error message for old style import v8.2.4167
Bram Moolenaar [Thu, 20 Jan 2022 21:32:54 +0000 (21:32 +0000)]
patch 8.2.4167: Vim9: error message for old style import

Problem:    Vim9: error message for old style import.
Solution:   Use another error message.  Add a test.

3 years agopatch 8.2.4166: undo synced when switching buffer in another window v8.2.4166
Bram Moolenaar [Thu, 20 Jan 2022 21:00:54 +0000 (21:00 +0000)]
patch 8.2.4166: undo synced when switching buffer in another window

Problem:    Undo synced when switching buffer in another window.
Solution:   Do not sync undo when not needed. (closes #9575)

3 years agopatch 8.2.4165: the nv_g_cmd() function is too long v8.2.4165
Yegappan Lakshmanan [Thu, 20 Jan 2022 20:18:27 +0000 (20:18 +0000)]
patch 8.2.4165: the nv_g_cmd() function is too long

Problem:    The nv_g_cmd() function is too long.
Solution:   Move code to separate functions. (Yegappan Lakshmanan,
            closes #9576)

3 years agopatch 8.2.4164: error in legacy code for function shadowing variable v8.2.4164
Bram Moolenaar [Thu, 20 Jan 2022 19:56:49 +0000 (19:56 +0000)]
patch 8.2.4164: error in legacy code for function shadowing variable

Problem:    Error in legacy code for function shadowing variable.
Solution:   Only give the error in Vim9 script.

3 years agopatch 8.2.4163: no error for omitting function name after autoload prefix v8.2.4163
Bram Moolenaar [Thu, 20 Jan 2022 19:38:46 +0000 (19:38 +0000)]
patch 8.2.4163: no error for omitting function name after autoload prefix

Problem:    No error for omitting function name after autoload prefix.
Solution:   Check for missing function name. (issue #9577)

3 years agopatch 8.2.4162: Vim9: no error for redefining function with export v8.2.4162
Bram Moolenaar [Thu, 20 Jan 2022 19:10:25 +0000 (19:10 +0000)]
patch 8.2.4162: Vim9: no error for redefining function with export

Problem:    Vim9: no error for redefining function with export.
Solution:   Check for existing function with/without prefix. (closes #9577)

3 years agopatch 8.2.4161: Vim9: warning for missing white space after imported variable v8.2.4161
Bram Moolenaar [Thu, 20 Jan 2022 17:35:49 +0000 (17:35 +0000)]
patch 8.2.4161: Vim9: warning for missing white space after imported variable

Problem:    Vim9: warning for missing white space after imported variable.
Solution:   Do not skip white space. (closes #9567)

3 years agopatch 8.2.4160: cannot change the register used for Select mode delete v8.2.4160
Shougo Matsushita [Thu, 20 Jan 2022 15:26:03 +0000 (15:26 +0000)]
patch 8.2.4160: cannot change the register used for Select mode delete

Problem:    Cannot change the register used for Select mode delete.
Solution:   Make CTRL-R set the register to be used when deleting text for
            Select mode. (Shougo Matsushita, closes #9531)

3 years agopatch 8.2.4159: MS-Windows: _WndProc() is very long v8.2.4159
K.Takata [Thu, 20 Jan 2022 15:10:57 +0000 (15:10 +0000)]
patch 8.2.4159: MS-Windows: _WndProc() is very long

Problem:    MS-Windows: _WndProc() is very long.
Solution:   Move code to separate functions. (Ken Takata, closes #9573)

3 years agopatch 8.2.4158: MS-Windows: memory leak in :browse v8.2.4158
K.Takata [Thu, 20 Jan 2022 15:05:22 +0000 (15:05 +0000)]
patch 8.2.4158: MS-Windows: memory leak in :browse

Problem:    MS-Windows: memory leak in :browse.
Solution:   Free stuff before returning. (Ken Takata, closes #9574)

3 years agopatch 8.2.4157: terminal test fails because Windows sets the title v8.2.4157
ichizok [Thu, 20 Jan 2022 14:57:29 +0000 (14:57 +0000)]
patch 8.2.4157: terminal test fails because Windows sets the title

Problem:    Terminal test fails because Windows sets the title.
Solution:   Add the "vterm_title" testing override and use it in the test.
            (Ozaki Kiichi, closes #9556)

3 years agopatch 8.2.4156: fileinfo message overwrites echo'ed message v8.2.4156
Rob Pilling [Thu, 20 Jan 2022 14:44:38 +0000 (14:44 +0000)]
patch 8.2.4156: fileinfo message overwrites echo'ed message

Problem:    Fileinfo message overwrites echo'ed message.
Solution:   Reset need_fileinfo when displaying a message. (Rob Pilling,
            closes #9569)

3 years agopatch 8.2.4155: translating strftime() argument results in check error v8.2.4155
Bram Moolenaar [Thu, 20 Jan 2022 14:25:57 +0000 (14:25 +0000)]
patch 8.2.4155: translating strftime() argument results in check error

Problem:    Translating strftime() argument results in check error.
Solution:   Add gettext comment.

3 years agopatch 8.2.4154: ml_get error when exchanging windows in Visual mode v8.2.4154
Bram Moolenaar [Thu, 20 Jan 2022 13:32:50 +0000 (13:32 +0000)]
patch 8.2.4154: ml_get error when exchanging windows in Visual mode

Problem:    ml_get error when exchanging windows in Visual mode.
Solution:   Correct end of Visual area when entering another buffer.

3 years agopatch 8.2.4153: MS-Windows: Global IME is no longer supported v8.2.4153
K.Takata [Thu, 20 Jan 2022 12:44:28 +0000 (12:44 +0000)]
patch 8.2.4153: MS-Windows: Global IME is no longer supported

Problem:    MS-Windows: Global IME is no longer supported.
Solution:   Remove the Global IME implementation. (Ken Takata, closes #9562)

3 years agopatch 8.2.4152: block insert with double wide character fails v8.2.4152
Bram Moolenaar [Thu, 20 Jan 2022 12:22:35 +0000 (12:22 +0000)]
patch 8.2.4152: block insert with double wide character fails

Problem:    Block insert with double wide character fails.
Solution:   Adjust the expected output.

3 years agopatch 8.2.4151: reading beyond the end of a line v8.2.4151
Bram Moolenaar [Thu, 20 Jan 2022 12:10:48 +0000 (12:10 +0000)]
patch 8.2.4151: reading beyond the end of a line

Problem:    Reading beyond the end of a line.
Solution:   For block insert only use the offset for correcting the length.

3 years agopatch 8.2.4150: Coverity warns for using pointer after free v8.2.4150
Bram Moolenaar [Thu, 20 Jan 2022 11:27:58 +0000 (11:27 +0000)]
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.

3 years agopatch 8.2.4149: test override not restored, autocommand left behind v8.2.4149
Bram Moolenaar [Thu, 20 Jan 2022 11:17:18 +0000 (11:17 +0000)]
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.