]> granicus.if.org Git - vim/log
vim
2 years agopatch 8.2.4462: not enough testing for quickfix code v8.2.4462
Yegappan Lakshmanan [Thu, 24 Feb 2022 12:33:17 +0000 (12:33 +0000)]
patch 8.2.4462: not enough testing for quickfix code

Problem:    Not enough testing for quickfix code.
Solution:   Add more tests. Fix uncovered problem. (Yegappan Lakshmanan,
            closes #9839)

2 years agopatch 8.2.4461: MS-Windows: garbage characters on stdout with VIMDLL v8.2.4461
Bram Moolenaar [Thu, 24 Feb 2022 11:39:43 +0000 (11:39 +0000)]
patch 8.2.4461: MS-Windows: garbage characters on stdout with VIMDLL

Problem:    MS-Windows: garbage characters on stdout with VIMDLL.
Solution:   Don't call gui_focus_change() when about to quit. (Ken Takata,
            closes #9840)

2 years agopatch 8.2.4460: Vim9: wrong error for defining dict function v8.2.4460
Bram Moolenaar [Wed, 23 Feb 2022 22:12:02 +0000 (22:12 +0000)]
patch 8.2.4460: Vim9: wrong error for defining dict function

Problem:    Vim9: wrong error for defining dict function.
Solution:   Explicitly check for trying to define a dict function.
            (closes 9827)

2 years agopatch 8.2.4459: Vim9: compiling sort() call fails with unknown arguments v8.2.4459
Bram Moolenaar [Wed, 23 Feb 2022 21:03:32 +0000 (21:03 +0000)]
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)

2 years agopatch 8.2.4458: Vim9: compiling filter() call fails with unknown arguments v8.2.4458
Bram Moolenaar [Wed, 23 Feb 2022 19:11:49 +0000 (19:11 +0000)]
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)

2 years agopatch 8.2.4457: the GPM library can only be linked statically v8.2.4457
Bram Moolenaar [Wed, 23 Feb 2022 18:07:38 +0000 (18:07 +0000)]
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)

2 years agopatch 8.2.4456: terminal test may fail on some machines v8.2.4456
Zdenek Dohnal [Wed, 23 Feb 2022 14:25:17 +0000 (14:25 +0000)]
patch 8.2.4456: terminal test may fail on some machines

Problem:    Terminal test may fail on some machines.
Solution:   Increase wait time. (Zdenek Dohnal, closes #9834)

2 years agopatch 8.2.4455: accepting one and zero for second sort() argument is strange v8.2.4455
Bram Moolenaar [Wed, 23 Feb 2022 13:17:47 +0000 (13:17 +0000)]
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.

2 years agopatch 8.2.4454: resetting cmdwin_type only for one situation v8.2.4454
zeertzjq [Wed, 23 Feb 2022 12:23:08 +0000 (12:23 +0000)]
patch 8.2.4454: resetting cmdwin_type only for one situation

Problem:    Resetting cmdwin_type only for one situation.
Solution:   Reset cmdwin_type before closing windows. (closes #9822)

2 years agopatch 8.2.4453: :helpgrep may free an option that was not allocated v8.2.4453
Bram Moolenaar [Wed, 23 Feb 2022 12:06:00 +0000 (12:06 +0000)]
patch 8.2.4453: :helpgrep may free an option that was not allocated

Problem:    :helpgrep may free an option that was not allocated. (Yegappan
            Lakshmanan)
Solution:   Check if the value was allocated.

2 years agopatch 8.2.4452: test for what 8.2.4436 fixes does not check for regression v8.2.4452
Bram Moolenaar [Wed, 23 Feb 2022 10:52:41 +0000 (10:52 +0000)]
patch 8.2.4452: test for what 8.2.4436 fixes does not check for regression

Problem:    Test for what 8.2.4436 fixes does not check for regression.
Solution:   Set several options. (Ken Takata, closes #9830)

2 years agopatch 8.2.4451: sort() fails when ignoring case v8.2.4451
Bram Moolenaar [Tue, 22 Feb 2022 22:53:10 +0000 (22:53 +0000)]
patch 8.2.4451: sort() fails when ignoring case

Problem:    sort() fails when ignoring case.
Solution:   Accept a number one argument in sort().

2 years agopatch 8.2.4450: list sort test fails v8.2.4450
Bram Moolenaar [Tue, 22 Feb 2022 22:17:00 +0000 (22:17 +0000)]
patch 8.2.4450: list sort test fails

Problem:    List sort test fails.
Solution:   Pass a valid "how" argument.

2 years agopatch 8.2.4449: vim9: function argument of sort() not checked at compile time v8.2.4449
Bram Moolenaar [Tue, 22 Feb 2022 21:54:44 +0000 (21:54 +0000)]
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.

2 years agopatch 8.2.4448: filetype detection is failing v8.2.4448
Bram Moolenaar [Tue, 22 Feb 2022 21:17:40 +0000 (21:17 +0000)]
patch 8.2.4448: filetype detection is failing

Problem:    Filetype detection is failing.
Solution:   Do not use "s:" where it is no longer allowed.

2 years agopatch 8.2.4447: Vim9: can still use s:var in a compiled function v8.2.4447
Bram Moolenaar [Tue, 22 Feb 2022 20:43:36 +0000 (20:43 +0000)]
patch 8.2.4447: Vim9: can still use s:var in a compiled function

Problem:    Vim9: can still use s:var in a compiled function.
Solution:   Disallow using s:var for Vim9 script. (closes #9824)

2 years agopatch 8.2.4446: Vim9: cannot refer to a global function like a local one v8.2.4446
Bram Moolenaar [Tue, 22 Feb 2022 19:39:13 +0000 (19:39 +0000)]
patch 8.2.4446: Vim9: cannot refer to a global function like a local one

Problem:    Vim9: cannot refer to a global function like a local one.
Solution:   When g:name is not a variable but a function, use a function
            reference. (closes #9826)

2 years agopatch 8.2.4445: exit test fails on MS-Windows anyway v8.2.4445
Bram Moolenaar [Tue, 22 Feb 2022 18:48:11 +0000 (18:48 +0000)]
patch 8.2.4445: exit test fails on MS-Windows anyway

Problem:    Exit test fails on MS-Windows anyway.
Solution:   Skip the test on MS-Windows.

2 years agopatch 8.2.4444: beep caused by test v8.2.4444
Bram Moolenaar [Tue, 22 Feb 2022 17:42:48 +0000 (17:42 +0000)]
patch 8.2.4444: beep caused by test

Problem:    Beep caused by test.  ASAN reports leaks.
Solution:   Do not put a NL at the end of the script.  Make the text work on
            MS-Windows.  Do not run the test with ASAN.

2 years agopatch 8.2.4443: regexp pattern test fails on Mac v8.2.4443
Bram Moolenaar [Tue, 22 Feb 2022 16:19:37 +0000 (16:19 +0000)]
patch 8.2.4443: regexp pattern test fails on Mac

Problem:    Regexp pattern test fails on Mac.
Solution:   Do not use a swapfile for the buffer.

2 years agopatch 8.2.4442: test for error reading input fails on MS-Windows v8.2.4442
Bram Moolenaar [Tue, 22 Feb 2022 15:24:51 +0000 (15:24 +0000)]
patch 8.2.4442: test for error reading input fails on MS-Windows

Problem:    Test for error reading input fails on MS-Windows.
Solution:   Don't run the test on MS-Windows.

2 years agopatch 8.2.4441: Vim9: function argument of filter() not checked like map() v8.2.4441
Bram Moolenaar [Tue, 22 Feb 2022 15:12:14 +0000 (15:12 +0000)]
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().

2 years agopatch 8.2.4440: crash with specific regexp pattern and string v8.2.4440
Bram Moolenaar [Tue, 22 Feb 2022 13:37:31 +0000 (13:37 +0000)]
patch 8.2.4440: crash with specific regexp pattern and string

Problem:    Crash with specific regexp pattern and string.
Solution:   Stop at the start of the string.

2 years agopatch 8.2.4439: accepting "iso8859" 'encoding' as "iso-8859-" v8.2.4439
Bram Moolenaar [Tue, 22 Feb 2022 12:34:28 +0000 (12:34 +0000)]
patch 8.2.4439: accepting "iso8859" 'encoding' as "iso-8859-"

Problem:    Accepting "iso8859" 'encoding' as "iso-8859-".
Solution:   use "iso8859" as "iso-8859-1".

2 years agopatch 8.2.4438: crash on exit when using cmdline window v8.2.4438
Bram Moolenaar [Tue, 22 Feb 2022 12:08:07 +0000 (12:08 +0000)]
patch 8.2.4438: crash on exit when using cmdline window

Problem:    Crash on exit when using cmdline window.
Solution:   Reset "cmdwin_type" before exiting. (closes #9817)

2 years agopatch 8.2.4437: vartabs test fails on MS-Windows v8.2.4437
K.Takata [Tue, 22 Feb 2022 11:04:50 +0000 (11:04 +0000)]
patch 8.2.4437: vartabs test fails on MS-Windows

Problem:    Vartabs test fails on MS-Windows.
Solution:   Use iso8859-1 'encoding'. (Ken Takata, closes #9818)

2 years agopatch 8.2.4436: crash with weird 'vartabstop' value v8.2.4436
Bram Moolenaar [Mon, 21 Feb 2022 19:36:12 +0000 (19:36 +0000)]
patch 8.2.4436: crash with weird 'vartabstop' value

Problem:    Crash with weird 'vartabstop' value.
Solution:   Check for running into the end of the line.

2 years agopatch 8.2.4435: dead code in checking map() arguments v8.2.4435
Bram Moolenaar [Mon, 21 Feb 2022 18:34:30 +0000 (18:34 +0000)]
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)

2 years agopatch 8.2.4434: duplicate check for cmdline window v8.2.4434
Sean Dewar [Mon, 21 Feb 2022 17:56:33 +0000 (17:56 +0000)]
patch 8.2.4434: duplicate check for cmdline window

Problem:    Duplicate check for cmdline window.
Solution:   Remove the second check. (Sean Dewar, closes #9816)

2 years agopatch 8.2.4433: CI: cannot see interface versions for MS-Windows v8.2.4433
K.Takata [Mon, 21 Feb 2022 17:49:28 +0000 (17:49 +0000)]
patch 8.2.4433: CI: cannot see interface versions for MS-Windows

Problem:    CI: cannot see interface versions for MS-Windows.
Solution:   List the interface versions. (Ken Takata, closes #9811)

2 years agopatch 8.2.4432: cannot use settabvar() while the cmdline window is open v8.2.4432
Bram Moolenaar [Mon, 21 Feb 2022 16:13:49 +0000 (16:13 +0000)]
patch 8.2.4432: cannot use settabvar() while the cmdline window is open

Problem:    Cannot use settabvar() while the cmdline window is open.
Solution:   Only give an error when actually switching tabpage.
            (closes #9813)

2 years agopatch 8.2.4431: unnecessary condition when assigning to a variable v8.2.4431
Bram Moolenaar [Mon, 21 Feb 2022 15:59:11 +0000 (15:59 +0000)]
patch 8.2.4431: unnecessary condition when assigning to a variable

Problem:    Unnecessary condition when assigning to a variable.
Solution:   Remove the condition.

2 years agopatch 8.2.4430: GTK: crash when using 'guiligatures' and reading from stdin v8.2.4430
Amon Sha [Mon, 21 Feb 2022 15:07:12 +0000 (15:07 +0000)]
patch 8.2.4430: GTK: crash when using 'guiligatures' and reading from stdin

Problem:    GTK: crash when using 'guiligatures' and reading from stdin.
Solution:   Make a copy of the message. (Amon Sha, closes #9719, closes #9814)

2 years agopatch 8.2.4429: using script-local function from the wrong script v8.2.4429
Bram Moolenaar [Mon, 21 Feb 2022 13:13:50 +0000 (13:13 +0000)]
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.

2 years agopatch 8.2.4428: crash when switching tabpage while in the cmdline window v8.2.4428
Bram Moolenaar [Sun, 20 Feb 2022 20:49:35 +0000 (20:49 +0000)]
patch 8.2.4428: crash when switching tabpage while in the cmdline window

Problem:    Crash when switching tabpage while in the cmdline window.
Solution:   Disallow switching tabpage when in the cmdline window.

2 years agoUpdate runtime files
Bram Moolenaar [Sun, 20 Feb 2022 19:48:20 +0000 (19:48 +0000)]
Update runtime files

2 years agopatch 8.2.4427: getchar() may return modifiers if no character is available v8.2.4427
zeertzjq [Sun, 20 Feb 2022 19:05:10 +0000 (19:05 +0000)]
patch 8.2.4427: getchar() may return modifiers if no character is available

Problem:    getchar() may return modifiers if no character is available.
Solution:   Do not process modifiers when there is no character. (closes #9806)

2 years agopatch 8.2.4426: map() function on string and blob does not check types v8.2.4426
Bram Moolenaar [Sun, 20 Feb 2022 18:26:46 +0000 (18:26 +0000)]
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()".

2 years agopatch 8.2.4425: map() function does not check function arguments v8.2.4425
Bram Moolenaar [Sun, 20 Feb 2022 15:52:28 +0000 (15:52 +0000)]
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.

2 years agopatch 8.2.4424: ".gts" and ".gjs" files are not recognized v8.2.4424
NullVoxPopuli [Sat, 19 Feb 2022 16:35:58 +0000 (16:35 +0000)]
patch 8.2.4424: ".gts" and ".gjs" files are not recognized

Problem:    ".gts" and ".gjs" files are not recognized.
Solution:   Recognize Glimmer flavored typescript and javascript.
            (closes #9799)

2 years agopatch 8.2.4423: "make nvcmdidxs" fails v8.2.4423
Bram Moolenaar [Sat, 19 Feb 2022 16:00:16 +0000 (16:00 +0000)]
patch 8.2.4423: "make nvcmdidxs" fails

Problem:    "make nvcmdidxs" fails.
Solution:   Use "-S" instead of "-u" to source the script.

2 years agopatch 8.2.4422: autochdir test fails on MS-Windows v8.2.4422
Bram Moolenaar [Sat, 19 Feb 2022 14:49:51 +0000 (14:49 +0000)]
patch 8.2.4422: autochdir test fails on MS-Windows

Problem:    Autochdir test fails on MS-Windows.
Solution:   Expecta nother error on MS-Windows.

2 years agopatch 8.2.4421: some installed files and directories have wrong permissions v8.2.4421
Bram Moolenaar [Sat, 19 Feb 2022 13:25:18 +0000 (13:25 +0000)]
patch 8.2.4421: some installed files and directories have wrong permissions

Problem:    Some installed files and directories have wrong permissions.
Solution:   Adjust the Makefile and shell to set permissions. (closes #9793)

2 years agopatch 8.2.4420: menu translations are inconsistent v8.2.4420
Ada [Sat, 19 Feb 2022 12:06:09 +0000 (12:06 +0000)]
patch 8.2.4420: menu translations are inconsistent

Problem:    Menu translations are inconsistent.
Solution:   Add a Makefile to convert between encodings. (Ada (Haowen) Yu,
            closes #9801)

2 years agopatch 8.2.4419: illegal memory access when using 20 highlights v8.2.4419
Brandon Richardson [Sat, 19 Feb 2022 11:45:03 +0000 (11:45 +0000)]
patch 8.2.4419: illegal memory access when using 20 highlights

Problem:    Illegal memory access when using exactly 20 highlights.
Solution:   Add one more item in the array. (Brandon Richardson,
            closes #9800)

2 years agopatch 8.2.4418: crash when using special multi-byte character v8.2.4418
Bram Moolenaar [Sat, 19 Feb 2022 11:20:12 +0000 (11:20 +0000)]
patch 8.2.4418: crash when using special multi-byte character

Problem:    Crash when using special multi-byte character.
Solution:   Don't use isalpha() for an arbitrary character.

2 years agopatch 8.2.4417: using NULL pointer v8.2.4417
Bram Moolenaar [Fri, 18 Feb 2022 18:34:45 +0000 (18:34 +0000)]
patch 8.2.4417: using NULL pointer

Problem:    Using NULL pointer.
Solution:   Set offset after checking for NULL pointer.

2 years agopatch 8.2.4416: Vim9: using a script-local function requires using "s:" v8.2.4416
Bram Moolenaar [Fri, 18 Feb 2022 17:50:47 +0000 (17:50 +0000)]
patch 8.2.4416: Vim9: using a script-local function requires using "s:"

Problem:    Vim9: using a script-local function requires using "s:" when
            setting 'completefunc'.
Solution:   Do not require "s:" in Vim9 script. (closes #9796)

2 years agopatch 8.2.4415: function argument name conflicts with C++ keyword v8.2.4415
Bram Moolenaar [Fri, 18 Feb 2022 13:56:38 +0000 (13:56 +0000)]
patch 8.2.4415: function argument name conflicts with C++ keyword

Problem:    Function argument name conflicts with C++ keyword.
Solution:   Rename the argument.

2 years agopatch 8.2.4414: solidity files are not recognized v8.2.4414
=?UTF-8?q?Dundar=20G=C3=B6c?= [Fri, 18 Feb 2022 13:45:55 +0000 (13:45 +0000)]
patch 8.2.4414: solidity files are not recognized

Problem:    Solidity files are not recognized.
Solution:   Add the *.sol pattern. (Dundar Goc, closes #9792)

2 years agopatch 8.2.4413: Vim9: Coverity warns for using NULL pointer v8.2.4413
Bram Moolenaar [Fri, 18 Feb 2022 13:24:52 +0000 (13:24 +0000)]
patch 8.2.4413: Vim9: Coverity warns for using NULL pointer

Problem:    Vim9: Coverity warns for using NULL pointer.
Solution:   Give an internal error when funcref function can't be found.

2 years agopatch 8.2.4412: translation cleanup script does not remove empty lines at end v8.2.4412
Bram Moolenaar [Fri, 18 Feb 2022 11:28:29 +0000 (11:28 +0000)]
patch 8.2.4412: translation cleanup script does not remove empty lines at end

Problem:    Translation cleanup script does not remove empty lines at end.
Solution:   Remove empty lines at the end. (Ken Takata, closes #9794)

2 years agopatch 8.2.4411: bicep files are not recognized v8.2.4411
=?UTF-8?q?Dundar=20G=C3=B6c?= [Thu, 17 Feb 2022 21:30:26 +0000 (21:30 +0000)]
patch 8.2.4411: bicep files are not recognized

Problem:    Bicep files are not recognized.
Solution:   Match *.bicep files. (Dundar Goc, closes #9791)

2 years agopatch 8.2.4410: Vim9: some code not covered by tests v8.2.4410
Bram Moolenaar [Thu, 17 Feb 2022 19:44:07 +0000 (19:44 +0000)]
patch 8.2.4410: Vim9: some code not covered by tests

Problem:    Vim9: some code not covered by tests.
Solution:   Add a few more tests. Remove dead code.

2 years agopatch 8.2.4409: Vim9: some code not covered by tests v8.2.4409
Bram Moolenaar [Thu, 17 Feb 2022 16:30:11 +0000 (16:30 +0000)]
patch 8.2.4409: Vim9: some code not covered by tests

Problem:    Vim9: some code not covered by tests.
Solution:   Add a few more tests.  Fix reported line number.

2 years agopatch 8.2.4408: Vim9: some code not covered by tests v8.2.4408
Bram Moolenaar [Thu, 17 Feb 2022 14:42:02 +0000 (14:42 +0000)]
patch 8.2.4408: Vim9: some code not covered by tests

Problem:    Vim9: some code not covered by tests.
Solution:   Add a few more tests.  Correct error message.  Allow unlet on dict
            with a number key.

2 years agopatch 8.2.4407: Vim9: some code not covered by tests v8.2.4407
Bram Moolenaar [Thu, 17 Feb 2022 13:08:26 +0000 (13:08 +0000)]
patch 8.2.4407: Vim9: some code not covered by tests

Problem:    Vim9: some code not covered by tests.
Solution:   Add more tests.  Avoid giving two errors.  Remove dead code.

2 years agopatch 8.2.4406: expand functions use confusing argument names v8.2.4406
Yegappan Lakshmanan [Thu, 17 Feb 2022 11:26:42 +0000 (11:26 +0000)]
patch 8.2.4406: expand functions use confusing argument names

Problem:    Expand functions use confusing argument names.
Solution:   Rename "file" to "match".  Refactor some completion code.  Add a
            few more tests. (Yegappan Lakshmanan, closes #9790)

2 years agopatch 8.2.4405: compiler warning for unused variable without +folding v8.2.4405
Bram Moolenaar [Wed, 16 Feb 2022 21:51:00 +0000 (21:51 +0000)]
patch 8.2.4405: compiler warning for unused variable without +folding

Problem:    Compiler warning for unused variable without the +folding feature.
            (Tony Mechelynck)
Solution:   Add #ifdef.

2 years agopatch 8.2.4404: Vim9: some code not covered by tests v8.2.4404
Bram Moolenaar [Wed, 16 Feb 2022 21:48:25 +0000 (21:48 +0000)]
patch 8.2.4404: Vim9: some code not covered by tests

Problem:    Vim9: some code not covered by tests.
Solution:   Add a few specific test cases.

2 years agopatch 8.2.4403: ml_get error with nested folds and deleting lines v8.2.4403
Bram Moolenaar [Wed, 16 Feb 2022 20:30:52 +0000 (20:30 +0000)]
patch 8.2.4403: ml_get error with nested folds and deleting lines

Problem:    ml_get error with nested folds and deleting lines.
Solution:   Correct the last line number before calling hasFoldingWin().

2 years agopatch 8.2.4402: missing parenthesis may cause unexpected problems v8.2.4402
kylo252 [Wed, 16 Feb 2022 19:24:07 +0000 (19:24 +0000)]
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)

2 years agopatch 8.2.4401: map listing does not clear the rest of the command line v8.2.4401
Bram Moolenaar [Wed, 16 Feb 2022 18:27:55 +0000 (18:27 +0000)]
patch 8.2.4401: map listing does not clear the rest of the command line

Problem:    Map listing does not clear the rest of the command line.
Solution:   Call msg_clear_eos(). (closes #5623, closes #5962)

2 years agopatch 8.2.4400: MS-Windows: cannot use the mouse in the console with VIMDLL v8.2.4400
zeertzjq [Wed, 16 Feb 2022 17:51:47 +0000 (17:51 +0000)]
patch 8.2.4400: MS-Windows: cannot use the mouse in the console with VIMDLL

Problem:    MS-Windows: cannot use the mouse in the console with VIMDLL.
Solution:   use add_char2buf() instead of fix_input_buffer(). (closes #9784,
            closes #9769)

2 years agopatch 8.2.4399: crash after ml_get error v8.2.4399
Bram Moolenaar [Wed, 16 Feb 2022 16:33:28 +0000 (16:33 +0000)]
patch 8.2.4399: crash after ml_get error

Problem:    Crash after ml_get error.
Solution:   When returning "???" flush the line and set ml_line_lnum.

2 years agopatch 8.2.4398: some command completion functions are too long v8.2.4398
Yegappan Lakshmanan [Wed, 16 Feb 2022 12:44:29 +0000 (12:44 +0000)]
patch 8.2.4398: some command completion functions are too long

Problem:    Some command completion functions are too long.
Solution:   Refactor code into separate functions.  Add a few more tests.
            (Yegappan Lakshmanan, closes #9785)

2 years agopatch 8.2.4397: crash when using many composing characters in error message v8.2.4397
Bram Moolenaar [Wed, 16 Feb 2022 12:16:19 +0000 (12:16 +0000)]
patch 8.2.4397: crash when using many composing characters in error message

Problem:    Crash when using many composing characters in error message.
Solution:   Use mb_cptr2char_adv() instead of mb_ptr2char_adv().

2 years agopatch 8.2.4396: Python3 test fails v8.2.4396
Bram Moolenaar [Tue, 15 Feb 2022 21:33:29 +0000 (21:33 +0000)]
patch 8.2.4396: Python3 test fails

Problem:    Python3 test fails.
Solution:   Remove "let".

2 years agopatch 8.2.4395: some code lines not covered by tests v8.2.4395
Bram Moolenaar [Tue, 15 Feb 2022 21:17:56 +0000 (21:17 +0000)]
patch 8.2.4395: some code lines not covered by tests

Problem:    Some code lines not covered by tests.
Solution:   Add a few more test cases.  Fix getting more than one error for
            invalid assignment.

2 years agopatch 8.2.4394: UTF8 select mode test fails on MS-Windows v8.2.4394
Bram Moolenaar [Tue, 15 Feb 2022 19:52:56 +0000 (19:52 +0000)]
patch 8.2.4394: UTF8 select mode test fails on MS-Windows

Problem:    UTF8 select mode test fails on MS-Windows.
Solution:   Revert the #ifdef change.

2 years agopatch 8.2.4393: possible number overflow with nested folds v8.2.4393
Bram Moolenaar [Tue, 15 Feb 2022 19:15:22 +0000 (19:15 +0000)]
patch 8.2.4393: possible number overflow with nested folds

Problem:    Possible number overflow with nested folds.
Solution:   Avoid a negative line number.

2 years agopatch 8.2.4392: MS-Windows with VIMDLL: Escaping CSI is wrong v8.2.4392
Bram Moolenaar [Tue, 15 Feb 2022 17:17:18 +0000 (17:17 +0000)]
patch 8.2.4392: MS-Windows with VIMDLL: Escaping CSI is wrong

Problem:    MS-Windows with VIMDLL: Escaping CSI is wrong.
Solution:   Put back #ifdef. (Ken Takata, closes #9769)

2 years agopatch 8.2.4391: command line executed when typing Esc in the GUI v8.2.4391
Bram Moolenaar [Tue, 15 Feb 2022 16:17:44 +0000 (16:17 +0000)]
patch 8.2.4391: command line executed when typing Esc in the GUI

Problem:    Command line executed when typing Esc in the GUI.
Solution:   Move saving/restoring KeyTyped to build_stl_str_hl().
            (closes #9783)

2 years agopatch 8.2.4390: Vim9: list from declaration with inferred type not set v8.2.4390
Bram Moolenaar [Tue, 15 Feb 2022 15:37:11 +0000 (15:37 +0000)]
patch 8.2.4390: Vim9: list from declaration with inferred type not set

Problem:    Vim9: list from declaration with inferred type does not set the
            type on the value.
Solution:   When inferring the type in a variable declaration also set the
            type of the list or dictionary. (closes #9705)  Do not set the
            type when the member is "any".

2 years agopatch 8.2.4389: screenpos() does not handle a position in a closed fold v8.2.4389
Bram Moolenaar [Tue, 15 Feb 2022 13:40:17 +0000 (13:40 +0000)]
patch 8.2.4389: screenpos() does not handle a position in a closed fold

Problem:    screenpos() does not handle a position in a closed fold.
Solution:   Check if the position is inside a closed fold. (closes #9778)

2 years agopatch 8.2.4388: dead code in op_insert() v8.2.4388
zeertzjq [Tue, 15 Feb 2022 11:48:22 +0000 (11:48 +0000)]
patch 8.2.4388: dead code in op_insert()

Problem:    Dead code in op_insert().
Solution:   Remove condition and else block. (closes #9782)

2 years agopatch 8.2.4387: command line completion doesn't always work properly v8.2.4387
Yegappan Lakshmanan [Tue, 15 Feb 2022 11:35:54 +0000 (11:35 +0000)]
patch 8.2.4387: command line completion doesn't always work properly

Problem:    Command line completion doesn't always work properly.
Solution:   Adjust triggering after a "|".  Add more tests. (Yegappan
            Lakshmanan, closes #9779)

2 years agopatch 8.2.4386: still cannot build tiny version v8.2.4386
Bram Moolenaar [Mon, 14 Feb 2022 21:51:46 +0000 (21:51 +0000)]
patch 8.2.4386: still cannot build tiny version

Problem:    Still cannot build tiny version.
Solution:   Adjust #ifdefs.

2 years agopatch 8.2.4385: cannot build tiny version v8.2.4385
Bram Moolenaar [Mon, 14 Feb 2022 21:42:15 +0000 (21:42 +0000)]
patch 8.2.4385: cannot build tiny version

Problem:    Cannot build tiny version.
Solution:   Adjust #ifdefs.

2 years agopatch 8.2.4384: Vim9: error message not tested, some code not tested v8.2.4384
Bram Moolenaar [Mon, 14 Feb 2022 21:19:04 +0000 (21:19 +0000)]
patch 8.2.4384: Vim9: error message not tested, some code not tested

Problem:    Vim9: error message not tested, some code not tested.
Solution:   Add a couple of test cases.  Give an error for a command modifier
            without a command.

2 years agopatch 8.2.4383: Vim9: unused code lines v8.2.4383
Bram Moolenaar [Mon, 14 Feb 2022 19:53:03 +0000 (19:53 +0000)]
patch 8.2.4383: Vim9: unused code lines

Problem:    Vim9: unused code lines.
Solution:   Rely on either "cctx" or "cstack" to not be NULL.

2 years agopatch 8.2.4382: a custom 'tabline' may cause Esc to work like Enter v8.2.4382
Bram Moolenaar [Mon, 14 Feb 2022 19:17:53 +0000 (19:17 +0000)]
patch 8.2.4382: a custom 'tabline' may cause Esc to work like Enter

Problem:    A custom 'tabline' may cause Esc to work like Enter on the
            command line when the popup menu is displayed.
Solution:   Save and restore KeyTyped. (closes #9776)

2 years agopatch 8.2.4381: translation file listed twice v8.2.4381
Bram Moolenaar [Mon, 14 Feb 2022 15:59:05 +0000 (15:59 +0000)]
patch 8.2.4381: translation file listed twice

Problem:    Translation file listed twice.
Solution:   Remove one entry.

2 years agopatch 8.2.4380: small differences between Chinese translation files v8.2.4380
Ada [Mon, 14 Feb 2022 15:04:55 +0000 (15:04 +0000)]
patch 8.2.4380: small differences between Chinese translation files

Problem:    Small differences between Chinese translation files.
Solution:   Add rule for converting UTF-8 to gb2312. (closes #9773)

2 years agopatch 8.2.4379: an empty change is reported to a listener v8.2.4379
Bram Moolenaar [Mon, 14 Feb 2022 14:51:22 +0000 (14:51 +0000)]
patch 8.2.4379: an empty change is reported to a listener

Problem:    An empty change is reported to a listener.
Solution:   Do not report an empty change. (closes #9768)  Remove unused
            return value.

2 years agopatch 8.2.4378: incsearch HL broken when calling searchcount in 'tabLine' v8.2.4378
Christian Brabandt [Mon, 14 Feb 2022 12:44:32 +0000 (12:44 +0000)]
patch 8.2.4378: incsearch HL broken when calling searchcount in 'tabLine'

Problem:    Incsearch highlight broken when calling searchcount() in 'tabLine'
            function. (Mirko Palmer)
Solution:   Save and restore the incsearch state. (Christian Brabandt,
            closes #9763, closes #9633)

2 years agopatch 8.2.4377: CI steps for Windows are a bit unorganized v8.2.4377
ichizok [Mon, 14 Feb 2022 11:36:57 +0000 (11:36 +0000)]
patch 8.2.4377: CI steps for Windows are a bit unorganized

Problem:    CI steps for Windows are a bit unorganized.
Solution:   Organize CI test steps on Windows. (Ozaki Kiichi, closes #9764)

2 years agopatch 8.2.4376: not enough tests for command line completion v8.2.4376
Yegappan Lakshmanan [Mon, 14 Feb 2022 11:10:59 +0000 (11:10 +0000)]
patch 8.2.4376: not enough tests for command line completion

Problem:    Not enough tests for command line completion.
Solution:   Add a few more tests. (Yegappan Lakshmanan, closes #9771)

2 years agopatch 8.2.4375: ctx_imports is not used v8.2.4375
Bram Moolenaar [Sun, 13 Feb 2022 21:51:08 +0000 (21:51 +0000)]
patch 8.2.4375: ctx_imports is not used

Problem:    ctx_imports is not used.
Solution:   Delete ctx_imports.  Add missing dependency.

2 years agopatch 8.2.4374: unreachable code v8.2.4374
Bram Moolenaar [Sun, 13 Feb 2022 21:20:21 +0000 (21:20 +0000)]
patch 8.2.4374: unreachable code

Problem:    Unreachable code.
Solution:   Remove outdated code lines.

2 years agopatch 8.2.4373: expression test fails v8.2.4373
Bram Moolenaar [Sun, 13 Feb 2022 20:46:18 +0000 (20:46 +0000)]
patch 8.2.4373: expression test fails

Problem:    Expression test fails.
Solution:   Make the test work with latest Vim9 syntax.

2 years agopatch 8.2.4372: filetype detection from file contents is in legacy script v8.2.4372
Bram Moolenaar [Sun, 13 Feb 2022 20:32:02 +0000 (20:32 +0000)]
patch 8.2.4372: filetype detection from file contents is in legacy script

Problem:    Filetype detection from file contents is in legacy script.
Solution:   Use a compiled function for filetype detection.

2 years agopatch 8.2.4371: Vim9: can create a script variable from a legacy function v8.2.4371
Bram Moolenaar [Sun, 13 Feb 2022 13:56:29 +0000 (13:56 +0000)]
patch 8.2.4371: Vim9: can create a script variable from a legacy function

Problem:    Vim9: can create a script variable from a legacy function.
Solution:   Disallow creating a script variable from a function.

2 years agopatch 8.2.4370: MS-Windows: libsodium.dll not included with the installer v8.2.4370
Christian Brabandt [Sun, 13 Feb 2022 13:11:32 +0000 (13:11 +0000)]
patch 8.2.4370: MS-Windows: libsodium.dll not included with the installer

Problem:    MS-Windows: libsodium.dll not included with the installer.
Solution:   Add the file to the installer if it exists. (Christian Brabandt,
            closes #9762)

2 years agopatch 8.2.4369: redundant #ifdef argument v8.2.4369
ola.soder@axis.com [Sun, 13 Feb 2022 12:24:21 +0000 (12:24 +0000)]
patch 8.2.4369: redundant #ifdef argument

Problem:    Redundant #ifdef argument.
Solution:   Remove unused MSWIN. (Ola Söder, closes #9758)

2 years agopatch 8.2.4368: Amiga: a few compiler warnings v8.2.4368
ola.soder@axis.com [Sun, 13 Feb 2022 12:13:38 +0000 (12:13 +0000)]
patch 8.2.4368: Amiga: a few compiler warnings

Problem:    Amiga: a few compiler warnings.
Solution:   Adjust #ifdefs. Add "UNUSED". (Ola Söder, closes #9756,
            closes #9757)

2 years agopatch 8.2.4367: calling in_vim9script() multiple times v8.2.4367
Bram Moolenaar [Sun, 13 Feb 2022 11:57:33 +0000 (11:57 +0000)]
patch 8.2.4367: calling in_vim9script() multiple times

Problem:    Calling in_vim9script() multiple times.
Solution:   Call it once and keep the result.

2 years agopatch 8.2.4366: not enough tests for command line completion v8.2.4366
Yegappan Lakshmanan [Sun, 13 Feb 2022 11:45:09 +0000 (11:45 +0000)]
patch 8.2.4366: not enough tests for command line completion

Problem:    Not enough tests for command line completion.
Solution:   Add a few more tests. (Yegappan Lakshmanan, closes #9760)

2 years agopatch 8.2.4365: sticky command modifiers are too sticky v8.2.4365
Bram Moolenaar [Sat, 12 Feb 2022 22:13:06 +0000 (22:13 +0000)]
patch 8.2.4365: sticky command modifiers are too sticky

Problem:    sticky command modifiers are too sticky.
Solution:   Do not apply command modifiers to a called function. (closes #9751)

2 years agopatch 8.2.4364: MS-Windows: still running out of memory for a very long line v8.2.4364
Bram Moolenaar [Sat, 12 Feb 2022 21:59:51 +0000 (21:59 +0000)]
patch 8.2.4364: MS-Windows: still running out of memory for a very long line

Problem:    MS-Windows: still running out of memory for a very long line.
Solution:   Check for negative length.