]> granicus.if.org Git - vim/log
vim
3 years agopatch 8.2.3180: Vim9: memory leak when concatenating to an imported string v8.2.3180
Bram Moolenaar [Sun, 18 Jul 2021 19:24:50 +0000 (21:24 +0200)]
patch 8.2.3180: Vim9: memory leak when concatenating to an imported string

Problem:    Vim9: memory leak when concatenating to an imported string.
Solution:   Clear the destination.

3 years agopatch 8.2.3179: Vim9: cannot assign to an imported variable at script level v8.2.3179
Bram Moolenaar [Sun, 18 Jul 2021 18:40:33 +0000 (20:40 +0200)]
patch 8.2.3179: Vim9: cannot assign to an imported variable at script level

Problem:    Vim9: cannot assign to an imported variable at script level.
Solution:   Lookup imported items when assigning.

3 years agopatch 8.2.3178: Vim9: the file name of an :import cannot be an expression v8.2.3178
Bram Moolenaar [Sun, 18 Jul 2021 16:21:38 +0000 (18:21 +0200)]
patch 8.2.3178: Vim9: the file name of an :import cannot be an expression

Problem:    Vim9: the file name of an :import cannot be an expression.
Solution:   Accept an expression that results in a string.  Do not support
            :import in a function.

3 years agopatch 8.2.3177: Vim9: can not use "for _ in expr" at script level v8.2.3177
Bram Moolenaar [Sun, 18 Jul 2021 15:08:50 +0000 (17:08 +0200)]
patch 8.2.3177: Vim9: can not use "for _ in expr" at script level

Problem:    Vim9: can not use "for _ in expr" at script level.
Solution:   Skip assignment if the loop variable is "_".

3 years agopatch 8.2.3176: Vim9: no type error for comparing number with string v8.2.3176
Bram Moolenaar [Sun, 18 Jul 2021 12:43:43 +0000 (14:43 +0200)]
patch 8.2.3176: Vim9: no type error for comparing number with string

Problem:    Vim9: no type error for comparing number with string.
Solution:   Add a runtime type check. (closes #8571)

3 years agopatch 8.2.3175: Vim9: using illegal pointer with nested lambdas. v8.2.3175
Bram Moolenaar [Sun, 18 Jul 2021 11:42:29 +0000 (13:42 +0200)]
patch 8.2.3175: Vim9: using illegal pointer with nested lambdas.

Problem:    Vim9: using illegal pointer with inline function inside a lambda.
Solution:   Clear eval_tofree_cmdline when advancing to the next line.
            (closes #8578)

3 years agopatch 8.2.3174: Vim9: "legacy undo" finds "undo" variable v8.2.3174
Bram Moolenaar [Sat, 17 Jul 2021 19:24:56 +0000 (21:24 +0200)]
patch 8.2.3174: Vim9: "legacy undo" finds "undo" variable

Problem:    Vim9: "legacy undo" finds "undo" variable.
Solution:   Do not pass lookup function to find_ex_command(). (closes #8563)

3 years agopatch 8.2.3173: Vim9: argument types are not checked at compile time v8.2.3173
Yegappan Lakshmanan [Sat, 17 Jul 2021 17:11:07 +0000 (19:11 +0200)]
patch 8.2.3173: Vim9: argument types are not checked at compile time

Problem:    Vim9: argument types are not checked at compile time.
Solution:   Add more type checks. (Yegappan Lakshmanan, closes #8581)

3 years agopatch 8.2.3172: MzScheme test fails v8.2.3172
Bram Moolenaar [Fri, 16 Jul 2021 08:39:28 +0000 (10:39 +0200)]
patch 8.2.3172: MzScheme test fails

Problem:    MzScheme test fails. (Christian Brabandt)
Solution:   Correct function name.

3 years agopatch 8.2.3171: another illegal memory access in test v8.2.3171
Bram Moolenaar [Thu, 15 Jul 2021 21:44:54 +0000 (23:44 +0200)]
patch 8.2.3171: another illegal memory access in test

Problem:    Another illegal memory access in test.
Solution:   Check pointer is after the start of the line.

3 years agopatch 8.2.3170: Illegal memory access in test v8.2.3170
Bram Moolenaar [Thu, 15 Jul 2021 21:15:59 +0000 (23:15 +0200)]
patch 8.2.3170: Illegal memory access in test

Problem:    Illegal memory access in test.
Solution:   Check pointer is not before the start of the line.

3 years agopatch 8.2.3169: Vim9: cannot handle nested inline function v8.2.3169
Bram Moolenaar [Thu, 15 Jul 2021 20:03:50 +0000 (22:03 +0200)]
patch 8.2.3169: Vim9: cannot handle nested inline function

Problem:    Vim9: cannot handle nested inline function.
Solution:   Check for nested inline function. (closes #8575)

3 years agopatch 8.2.3168: Vim9: type error for constant of type any v8.2.3168
Bram Moolenaar [Thu, 15 Jul 2021 17:23:18 +0000 (19:23 +0200)]
patch 8.2.3168: Vim9: type error for constant of type any

Problem:    Vim9: type error for constant of type any.
Solution:   Do add a runtime type check if a constant has type any.
            (closes #8570)

3 years agopatch 8.2.3167: get E12 in a job callback when searching for tags v8.2.3167
Bram Moolenaar [Thu, 15 Jul 2021 16:14:56 +0000 (18:14 +0200)]
patch 8.2.3167: get E12 in a job callback when searching for tags

Problem:    Get E12 in a job callback when searching for tags. (Andy Stewart)
Solution:   Use the sandbox only for executing a command, not for searching.
            (closes #8511)

3 years agopatch 8.2.3166: Vim9: nested autoload call error overruled by "Unknown error" v8.2.3166
Bram Moolenaar [Thu, 15 Jul 2021 16:09:53 +0000 (18:09 +0200)]
patch 8.2.3166: Vim9: nested autoload call error overruled by "Unknown error"

Problem:    Vim9: nested autoload call error overruled by "Unknown error".
Solution:   Check need_rethrow before giving an "Unknown error".
            (closes #8568)

3 years agopatch 8.2.3165: Vim9: in a || expression the error line number may be wrong v8.2.3165
Bram Moolenaar [Thu, 15 Jul 2021 13:40:58 +0000 (15:40 +0200)]
patch 8.2.3165: Vim9: in a || expression the error line number may be wrong

Problem:    Vim9: in a || expression the error line number may be wrong.
Solution:   Save and restore the line number when checking the type.
            (closes #8569)

3 years agopatch 8.2.3164: MS-Windows: reported version lacks patchlevel v8.2.3164
Bram Moolenaar [Thu, 15 Jul 2021 12:14:30 +0000 (14:14 +0200)]
patch 8.2.3164: MS-Windows: reported version lacks patchlevel

Problem:    MS-Windows: reported version lacks patchlevel, causing some update
            tools to update too often. (Klaus Frank)
Solution:   Add the patchlevel to the version. (Christian Brabandt)

3 years agopatch 8.2.3163: location list window may open a wrong file v8.2.3163
Wei-Chung Wen [Thu, 15 Jul 2021 11:13:39 +0000 (13:13 +0200)]
patch 8.2.3163: location list window may open a wrong file

Problem:    Location list window may open a wrong file.
Solution:   Also update the qf_ptr field. (Wei-Chung Wen, closes #8565,
            closes #8566)

3 years agopatch 8.2.3162: Vim9: argument types are not checked at compile time v8.2.3162
Yegappan Lakshmanan [Thu, 15 Jul 2021 10:49:58 +0000 (12:49 +0200)]
patch 8.2.3162: Vim9: argument types are not checked at compile time

Problem:    Vim9: argument types are not checked at compile time.
Solution:   Add more type checks. (Yegappan Lakshmanan, closes #8560)

3 years agopatch 8.2.3161: Vim9: no error when reltime() has invalid arguments v8.2.3161
Bram Moolenaar [Wed, 14 Jul 2021 19:00:41 +0000 (21:00 +0200)]
patch 8.2.3161: Vim9: no error when reltime() has invalid arguments

Problem:    Vim9: no error when reltime() has invalid arguments.
Solution:   Add an error. (closes #8562)

3 years agopatch 8.2.3160: 'breakindent' does not work well for bulleted lists v8.2.3160
Christian Brabandt [Wed, 14 Jul 2021 18:00:27 +0000 (20:00 +0200)]
patch 8.2.3160: 'breakindent' does not work well for bulleted lists

Problem:    'breakindent' does not work well for bulleted and numbered lists.
Solution:   Add the "list" entry to 'breakindentopt'. (Christian Brabandt,
            closes #8564, closes #1661)

3 years agopatch 8.2.3159: cursor displayed in wrong position after deleting line v8.2.3159
Bram Moolenaar [Tue, 13 Jul 2021 20:21:44 +0000 (22:21 +0200)]
patch 8.2.3159: cursor displayed in wrong position after deleting line

Problem:    Cursor displayed in wrong position after deleting line.
Solution:   When deleting lines do not approximate botline. (fixes #8559)

3 years agopatch 8.2.3158: strange error message when using islocked() with a number v8.2.3158
Bram Moolenaar [Tue, 13 Jul 2021 18:32:29 +0000 (20:32 +0200)]
patch 8.2.3158: strange error message when using islocked() with a number

Problem:    Strange error message when using islocked() with a number.
            (Yegappan Lakshmanan)
Solution:   Check that the name is empty.

3 years agopatch 8.2.3157: crypt test may fail on MS-Windows v8.2.3157
Christian Brabandt [Tue, 13 Jul 2021 17:09:12 +0000 (19:09 +0200)]
patch 8.2.3157: crypt test may fail on MS-Windows

Problem:    Crypt test may fail on MS-Windows.
Solution:   Ignore "[unix]" in the file message. (Christian Brabandt,
            closes #8561)

3 years agopatch 8.2.3156: Vim9: term_getansicolors() test fails without +termguicolors v8.2.3156
Dominique Pelle [Mon, 12 Jul 2021 20:15:24 +0000 (22:15 +0200)]
patch 8.2.3156: Vim9: term_getansicolors() test fails without +termguicolors

Problem:    Vim9: term_getansicolors() test fails without +termguicolors.
Solution:   Add a check for the feature. (Dominique Pellé, closes #8555)

3 years agopatch 8.2.3155: some option related code not covered by tests v8.2.3155
Dominique Pelle [Mon, 12 Jul 2021 19:43:19 +0000 (21:43 +0200)]
patch 8.2.3155: some option related code not covered by tests

Problem:    Some option related code not covered by tests.
Solution:   Add a few test cases. (Dominique Pellé, closes #8552)

3 years agopatch 8.2.3154: Vim9: some type checks for builtin functions fail v8.2.3154
Yegappan Lakshmanan [Sun, 11 Jul 2021 20:04:25 +0000 (22:04 +0200)]
patch 8.2.3154: Vim9: some type checks for builtin functions fail

Problem:    Vim9: some type checks for builtin functions fail.
Solution:   Correct the type checks. (Yegappan Lakshmanan, closes #8551,
            closes #8550)

3 years agopatch 8.2.3153: URLs with a dash in the scheme are not recognized v8.2.3153
Tsuyoshi CHO [Sun, 11 Jul 2021 19:51:17 +0000 (21:51 +0200)]
patch 8.2.3153: URLs with a dash in the scheme are not recognized

Problem:    URLs with a dash in the scheme are not recognized.
Solution:   Allow for a scheme with a dash, but not at the start or end.
            (Tsuyoshi CHO, closes #8299)

3 years agopatch 8.2.3152: Vim9: accessing "s:" results in an error v8.2.3152
Bram Moolenaar [Sun, 11 Jul 2021 18:59:00 +0000 (20:59 +0200)]
patch 8.2.3152: Vim9: accessing "s:" results in an error

Problem:    Vim9: accessing "s:" results in an error.
Solution:   Do not try to lookup a script variable for "s:". (closes #8549)

3 years agopatch 8.2.3151: Vim9: profiling fails if nested function is also profiled v8.2.3151
Bram Moolenaar [Sun, 11 Jul 2021 18:22:30 +0000 (20:22 +0200)]
patch 8.2.3151: Vim9: profiling fails if nested function is also profiled

Problem:    Vim9: profiling fails if nested function is also profiled.
Solution:   Use the compile type from the outer function. (closes #8543)

3 years agopatch 8.2.3150: Vim9: argument types are not checked at compile time v8.2.3150
Yegappan Lakshmanan [Sun, 11 Jul 2021 17:44:18 +0000 (19:44 +0200)]
patch 8.2.3150: Vim9: argument types are not checked at compile time

Problem:    Vim9: argument types are not checked at compile time.
Solution:   Add more type checks. (Yegappan Lakshmanan, closes #8545)

3 years agopatch 8.2.3149: some plugins have a problem with the error check v8.2.3149
Bram Moolenaar [Sun, 11 Jul 2021 17:12:04 +0000 (19:12 +0200)]
patch 8.2.3149: some plugins have a problem with the error check

Problem:    Some plugins have a problem with the error check for using
            :command with -complete but without -nargs.
Solution:   In legacy script only give a warning message.

3 years agopatch 8.2.3148: Vim9: function arg type check does not handle base offset v8.2.3148
Bram Moolenaar [Sun, 11 Jul 2021 16:23:19 +0000 (18:23 +0200)]
patch 8.2.3148: Vim9: function arg type check does not handle base offset

Problem:    Vim9: function arg type check does not handle base offset.
Solution:   Take the base offset into account when checking builtin function
            argument types.

3 years agopatch 8.2.3147: Vim9: profiling does not work with a nested function v8.2.3147
Bram Moolenaar [Sun, 11 Jul 2021 15:55:01 +0000 (17:55 +0200)]
patch 8.2.3147: Vim9: profiling does not work with a nested function

Problem:    Vim9: profiling does not work with a nested function.
Solution:   Also compile a nested function without profiling. (closes #8543)
            Handle that compiling may cause the table of compiled functions to
            change.

3 years agopatch 8.2.3146: Vim9: line number wrong for :execute argument v8.2.3146
Bram Moolenaar [Sun, 11 Jul 2021 14:52:45 +0000 (16:52 +0200)]
patch 8.2.3146: Vim9: line number wrong for :execute argument

Problem:    Vim9: line number wrong for :execute argument.
Solution:   Use the line number of the :execute command itself. (closes #8537)

3 years agopatch 8.2.3145: Vim9: profile test fails without profile feature v8.2.3145
Bram Moolenaar [Sun, 11 Jul 2021 14:31:51 +0000 (16:31 +0200)]
patch 8.2.3145: Vim9: profile test fails without profile feature

Problem:    Vim9: profile test fails without profile feature.
Solution:   Check the profile feature is present.

3 years agopatch 8.2.3144: Vim9: no error when using an invalid value for a line number v8.2.3144
Bram Moolenaar [Sun, 11 Jul 2021 14:01:58 +0000 (16:01 +0200)]
patch 8.2.3144: Vim9: no error when using an invalid value for a line number

Problem:    Vim9: no error when using an invalid value for a line number.
Solution:   Give an error if the string value is not recognized.
            (closes #8536)

3 years agopatch 8.2.3143: Vim9: wrong context if lambda called from profiled function v8.2.3143
Bram Moolenaar [Sun, 11 Jul 2021 13:26:13 +0000 (15:26 +0200)]
patch 8.2.3143: Vim9: wrong context if lambda called from profiled function

Problem:    Vim9: A lambda may be compiled with the wrong context if it is
            called from a profiled function.
Solution:   Compile the lambda with and without profiling. (closes #8543)

3 years agopatch 8.2.3142: Vim9: type check for has_key() argument is too strict v8.2.3142
Bram Moolenaar [Sun, 11 Jul 2021 12:55:49 +0000 (14:55 +0200)]
patch 8.2.3142: Vim9: type check for has_key() argument is too strict

Problem:    Vim9: type check for has_key() argument is too strict.
Solution:   Also allow for a number key argument. (closes #8542)

3 years agopatch 8.2.3141: no error when using :complete for :command without -nargs v8.2.3141
Martin Tournoij [Sun, 11 Jul 2021 12:28:25 +0000 (14:28 +0200)]
patch 8.2.3141: no error when using :complete for :command without -nargs

Problem:    No error when using :complete for :command without -nargs.
Solution:   Give an error. (Martin Tournoij, closes #8544, closes #8541)

3 years agopatch 8.2.3140: MS-Windows: ipv6 channel test is very flaky also without GUI v8.2.3140
Bram Moolenaar [Sat, 10 Jul 2021 20:21:40 +0000 (22:21 +0200)]
patch 8.2.3140: MS-Windows: ipv6 channel test is very flaky also without GUI

Problem:    MS-Windows: ipv6 channel test is very flaky also without the GUI.
Solution:   Skip the test also without the GUI.

3 years agopatch 8.2.3139: functions for string manipulation are spread out v8.2.3139
Yegappan Lakshmanan [Sat, 10 Jul 2021 19:29:18 +0000 (21:29 +0200)]
patch 8.2.3139: functions for string manipulation are spread out

Problem:    Functions for string manipulation are spread out.
Solution:   Move string related functions to a new source file. (Yegappan
            Lakshmanan, closes #8470)

3 years agopatch 8.2.3138: debugger test fails v8.2.3138
Bram Moolenaar [Sat, 10 Jul 2021 18:43:59 +0000 (20:43 +0200)]
patch 8.2.3138: debugger test fails

Problem:    Debugger test fails.
Solution:   Adjust eval command.

3 years agopatch 8.2.3137: Vim9: no error when a line only has a variable name v8.2.3137
Bram Moolenaar [Sat, 10 Jul 2021 17:42:03 +0000 (19:42 +0200)]
patch 8.2.3137: Vim9: no error when a line only has a variable name

Problem:    Vim9: no error when a line only has a variable name.
Solution:   Give an error when an expression is evaluated without an effect.
            (closes #8538)

3 years agopatch 8.2.3136: no test for E187 and "No swap file" v8.2.3136
Dominique Pelle [Sat, 10 Jul 2021 15:59:48 +0000 (17:59 +0200)]
patch 8.2.3136: no test for E187 and "No swap file"

Problem:    No test for E187 and "No swap file".
Solution:   Add a test. (Dominique Pellé, closes #8540)

3 years agopatch 8.2.3135: Vim9: builtin function arguments not checked at compile time v8.2.3135
Yegappan Lakshmanan [Sat, 10 Jul 2021 11:15:41 +0000 (13:15 +0200)]
patch 8.2.3135: Vim9: builtin function arguments not checked at compile time

Problem:    Vim9: builtin function arguments not checked at compile time.
Solution:   Add more type checks. (Yegappan Lakshmanan, closes #8539)

3 years agopatch 8.2.3134: crash when using typename() on a function reference v8.2.3134
Bram Moolenaar [Fri, 9 Jul 2021 17:53:57 +0000 (19:53 +0200)]
patch 8.2.3134: crash when using typename() on a function reference

Problem:    Crash when using typename() on a function reference. (Naohiro Ono)
Solution:   Initialize pointer to NULL. (closes #8531)

3 years agopatch 8.2.3133: Vim9: memory leak when add() fails v8.2.3133
Bram Moolenaar [Fri, 9 Jul 2021 17:17:55 +0000 (19:17 +0200)]
patch 8.2.3133: Vim9: memory leak when add() fails

Problem:    Vim9: memory leak when add() fails.
Solution:   Allocate listitem_T after type check.

3 years agopatch 8.2.3132: compiler warns for size_t to colnr_T conversion. v8.2.3132
Bram Moolenaar [Fri, 9 Jul 2021 13:54:00 +0000 (15:54 +0200)]
patch 8.2.3132: compiler warns for size_t to colnr_T conversion.

Problem:    Compiler warns for size_t to colnr_T conversion. (Randall W.
            Morris)
Solution:   Add a type cast.

3 years agopatch 8.2.3131: MS-Windows: ipv6 channel test is very flaky in the GUI v8.2.3131
Bram Moolenaar [Thu, 8 Jul 2021 20:20:50 +0000 (22:20 +0200)]
patch 8.2.3131: MS-Windows: ipv6 channel test is very flaky in the GUI

Problem:    MS-Windows: ipv6 channel test is very flaky in the GUI.
Solution:   Skip the test.

3 years agopatch 8.2.3130: Vim9: import test fails v8.2.3130
Bram Moolenaar [Thu, 8 Jul 2021 20:02:11 +0000 (22:02 +0200)]
patch 8.2.3130: Vim9: import test fails

Problem:    Vim9: import test fails.
Solution:   Rename directory back to "import", use "p" to avoid an error when
            the directory already exists.

3 years agopatch 8.2.3129: Vim9: imported uninitialized list does not get type checked v8.2.3129
Bram Moolenaar [Thu, 8 Jul 2021 19:38:50 +0000 (21:38 +0200)]
patch 8.2.3129: Vim9: imported uninitialized list does not get type checked

Problem:    Vim9: imported uninitialized list does not get type checked.
Solution:   Get type from imported variable.

3 years agopatch 8.2.3128: Vim9: uninitialzed list does not get type checked v8.2.3128
Bram Moolenaar [Thu, 8 Jul 2021 18:57:24 +0000 (20:57 +0200)]
patch 8.2.3128: Vim9: uninitialzed list does not get type checked

Problem:    Vim9: uninitialzed list does not get type checked.
Solution:   Set the type when initializing the variable. (closes #8529)

3 years agopatch 8.2.3127: Vim9: no error when adding number to list of string v8.2.3127
Bram Moolenaar [Thu, 8 Jul 2021 18:53:40 +0000 (20:53 +0200)]
patch 8.2.3127: Vim9: no error when adding number to list of string

Problem:    Vim9: no error when adding number to list of string.
Solution:   Check the value type. (closes #8529)

3 years agopatch 8.2.3126: Vim9: for loop error reports wrong line number v8.2.3126
Bram Moolenaar [Thu, 8 Jul 2021 17:22:12 +0000 (19:22 +0200)]
patch 8.2.3126: Vim9: for loop error reports wrong line number

Problem:    Vim9: for loop error reports wrong line number.
Solution:   Save and restore the line number when evaluating the expression.
            (closes #8514)

3 years agopatch 8.2.3125: variables are set but not used v8.2.3125
=?UTF-8?q?Dundar=20G=C3=B6c?= [Thu, 8 Jul 2021 16:05:00 +0000 (18:05 +0200)]
patch 8.2.3125: variables are set but not used

Problem:    Variables are set but not used.
Solution:   Move the declarations to the block where they are used.
            (closes #8527)

3 years agopatch 8.2.3124: Vim9: no error for white space between option and "=9" v8.2.3124
Bram Moolenaar [Thu, 8 Jul 2021 15:35:36 +0000 (17:35 +0200)]
patch 8.2.3124: Vim9: no error for white space between option and "=9"

Problem:    Vim9: no error for white space between option and "=9".
Solution:   Check for extraneous white space. (issue #8408)

3 years agopatch 8.2.3123: Vim9: confusing error when using white space after option v8.2.3123
Bram Moolenaar [Thu, 8 Jul 2021 14:40:13 +0000 (16:40 +0200)]
patch 8.2.3123: Vim9: confusing error when using white space after option

Problem:    Vim9: confusing error when using white space after option, before
            one of "!&<".
Solution:   Give a specific error. (issue #8408)

3 years agopatch 8.2.3122: with 'nowrap' cursor position is unexected in narrow window v8.2.3122
Bram Moolenaar [Thu, 8 Jul 2021 11:19:31 +0000 (13:19 +0200)]
patch 8.2.3122: with 'nowrap' cursor position is unexected in narrow window

Problem:    With 'nowrap' cursor position is unexected in narrow window.
            (Leonid V.  Fedorenchik)
Solution:   Put cursor on the last non-empty line. (closes #8525)

3 years agopatch 8.2.3121: 'listchars' "exceeds" character appears in foldcolumn v8.2.3121
Bram Moolenaar [Thu, 8 Jul 2021 10:40:05 +0000 (12:40 +0200)]
patch 8.2.3121: 'listchars' "exceeds" character appears in foldcolumn

Problem:    'listchars' "exceeds" character appears in foldcolumn. Window
            separator is missing. (Leonid V.  Fedorenchik)
Solution:   Only draw the "exceeds" character in the text area.  Break the
            loop when not drawing the text. (closes #8524)

3 years agopatch 8.2.3120: crypt with sodium test fails on MS-Windows v8.2.3120
Bram Moolenaar [Thu, 8 Jul 2021 09:37:50 +0000 (11:37 +0200)]
patch 8.2.3120: crypt with sodium test fails on MS-Windows

Problem:    Crypt with sodium test fails on MS-Windows.
Solution:   Make the tests pass. (closes #8428)

3 years agopatch 8.2.3119: compiler warning for unused argument v8.2.3119
Bram Moolenaar [Wed, 7 Jul 2021 20:13:08 +0000 (22:13 +0200)]
patch 8.2.3119: compiler warning for unused argument

Problem:    Compiler warning for unused argument.
Solution:   Add UNUSED.

3 years agopatch 8.2.3118: Vim9: "any" type not handled correctly in for loop v8.2.3118
Bram Moolenaar [Wed, 7 Jul 2021 19:55:25 +0000 (21:55 +0200)]
patch 8.2.3118: Vim9: "any" type not handled correctly in for loop

Problem:    Vim9: "any" type not handled correctly in for loop.
Solution:   Change compile time check into runtime check. (closes #8516)

3 years agopatch 8.2.3117: Vim9: type not properly checked in for loop v8.2.3117
Bram Moolenaar [Wed, 7 Jul 2021 19:21:30 +0000 (21:21 +0200)]
patch 8.2.3117: Vim9: type not properly checked in for loop

Problem:    Vim9: type not properly checked in for loop.
Solution:   Have items() return a list of lists.  Add runtime type checks.
            (closes #8515)

3 years agoUpdate runtime files
Bram Moolenaar [Wed, 7 Jul 2021 18:26:08 +0000 (20:26 +0200)]
Update runtime files

3 years agopatch 8.2.3116: Vim9: crash when debugging a function with line continuation v8.2.3116
Bram Moolenaar [Wed, 7 Jul 2021 18:10:43 +0000 (20:10 +0200)]
patch 8.2.3116: Vim9: crash when debugging a function with line continuation

Problem:    Vim9: crash when debugging a function with line continuation.
Solution:   Check for a NULL pointer. (closes #8521)

3 years agopatch 8.2.3115: Coverity complains about free_wininfo() use v8.2.3115
Bram Moolenaar [Wed, 7 Jul 2021 17:26:19 +0000 (19:26 +0200)]
patch 8.2.3115: Coverity complains about free_wininfo() use

Problem:    Coverity complains about free_wininfo() use.
Solution:   Add a condition that "wip2" is not equal to "wip". (Neovim #14996)

3 years agopatch 8.2.3114: Amiga-like systems: build error using stat() v8.2.3114
=?UTF-8?q?Ola=20S=C3=B6der?= [Tue, 6 Jul 2021 18:15:46 +0000 (20:15 +0200)]
patch 8.2.3114: Amiga-like systems: build error using stat()

Problem:    Amiga-like systems: build error using stat().
Solution:   Only build swapfile_process_running() on systems where it is
            actually used. (Ola Söder, closes #8519)

3 years agopatch 8.2.3113: no error when for loop variable shadows script variable v8.2.3113
Bram Moolenaar [Mon, 5 Jul 2021 20:23:00 +0000 (22:23 +0200)]
patch 8.2.3113: no error when for loop variable shadows script variable

Problem:    No error when for loop variable shadows script variable.
Solution:   Check for the error. (closes #8512)

3 years agopatch 8.2.3112: in rare cases the cursor may be somewhere in a folded line v8.2.3112
Bram Moolenaar [Mon, 5 Jul 2021 20:03:04 +0000 (22:03 +0200)]
patch 8.2.3112: in rare cases the cursor may be somewhere in a folded line

Problem:    With concealing enabled and indirectly closing a fold the cursor
            may be somewhere in a folded line when it is not on the first line
            of the fold.
Solution:   Check if he cursor is somewhere in the folded text.

3 years agopatch 8.2.3111: Vim9: confusing error with extra whitespace before colon v8.2.3111
Bram Moolenaar [Mon, 5 Jul 2021 19:41:48 +0000 (21:41 +0200)]
patch 8.2.3111: Vim9: confusing error with extra whitespace before colon

Problem:    Vim9: confusing error with extra whitespace before colon.
Solution:   Check for colon after white space. (closes #8513)

3 years agopatch 8.2.3110: a pattern that matches the cursor position is complicated v8.2.3110
Bram Moolenaar [Mon, 5 Jul 2021 18:15:23 +0000 (20:15 +0200)]
patch 8.2.3110: a pattern that matches the cursor position is complicated

Problem:    A pattern that matches the cursor position is bit complicated.
Solution:   Use a dot to indicate the cursor line and column. (Christian
            Brabandt, closes #8497, closes #8179)

3 years agopatch 8.2.3109: check for $DISPLAY never fails v8.2.3109
Bram Moolenaar [Mon, 5 Jul 2021 15:49:02 +0000 (17:49 +0200)]
patch 8.2.3109: check for $DISPLAY never fails

Problem:    Check for $DISPLAY never fails.
Solution:   Use eval().

3 years agopatch 8.2.3108: test for remote_foreground() fails v8.2.3108
Bram Moolenaar [Mon, 5 Jul 2021 12:10:04 +0000 (14:10 +0200)]
patch 8.2.3108: test for remote_foreground() fails

Problem:    Test for remote_foreground() fails. (Elimar Riesebieter)
Solution:   Check that $DISPLAY is set. (Christian Brabandt)

3 years agopatch 8.2.3107: Vim9: error for arguments while type didn't specify arguments v8.2.3107
Bram Moolenaar [Sun, 4 Jul 2021 21:29:30 +0000 (23:29 +0200)]
patch 8.2.3107: Vim9: error for arguments while type didn't specify arguments

Problem:    Vim9: error for arguments while type didn't specify arguments.
Solution:   Do not update that type to check when no argument count is
            specified. (closes #8492)

3 years agopatch 8.2.3106: Vim9: confusing line number reported for error v8.2.3106
Bram Moolenaar [Sun, 4 Jul 2021 20:48:12 +0000 (22:48 +0200)]
patch 8.2.3106: Vim9: confusing line number reported for error

Problem:    Vim9: confusing line number reported for error.
Solution:   Use the start line number for the store instruction.
            (closes #8488)

3 years agopatch 8.2.3105: Vim9: type of partial is wrong when it has arguments v8.2.3105
Bram Moolenaar [Sun, 4 Jul 2021 18:20:52 +0000 (20:20 +0200)]
patch 8.2.3105: Vim9: type of partial is wrong when it has arguments

Problem:    Vim9: type of partial is wrong when it has arguments.
Solution:   Subtract arguments from the count. (issue #8492)

3 years agopatch 8.2.3104: Vim9: unspecified function type causes type error v8.2.3104
Bram Moolenaar [Sun, 4 Jul 2021 16:28:15 +0000 (18:28 +0200)]
patch 8.2.3104: Vim9: unspecified function type causes type error

Problem:    Vim9: unspecified function type causes type error.
Solution:   Don't check type when min_argcount is negative. (issue #8492)

3 years agopatch 8.2.3103: swap test may fail on some systems v8.2.3103
Bram Moolenaar [Sun, 4 Jul 2021 15:36:54 +0000 (17:36 +0200)]
patch 8.2.3103: swap test may fail on some systems

Problem:    Swap test may fail on some systems when jobs take longer to exit.
Solution:   Use different file names.

3 years agopatch 8.2.3102: test for crash fix does not fail without the fix v8.2.3102
Bram Moolenaar [Sun, 4 Jul 2021 15:23:25 +0000 (17:23 +0200)]
patch 8.2.3102: test for crash fix does not fail without the fix

Problem:    Test for crash fix does not fail without the fix.
Solution:   Adjust the test sequence. (closes #8506)

3 years agopatch 8.2.3101: missing function prototype for vim_round()
Bram Moolenaar [Sun, 4 Jul 2021 15:21:04 +0000 (17:21 +0200)]
patch 8.2.3101: missing function prototype for vim_round()

Problem:    Missing function prototype for vim_round().
Solution:   Add the prototype

3 years agopatch 8.2.3101: missing function prototype for vim_round() v8.2.3101
Bram Moolenaar [Sun, 4 Jul 2021 14:50:55 +0000 (16:50 +0200)]
patch 8.2.3101: missing function prototype for vim_round()

Problem:    Missing function prototype for vim_round().
Solution:   Add the prototype.

3 years agopatch 8.2.3100: Vim9: no error when using type with unknown number of args v8.2.3100
Bram Moolenaar [Sun, 4 Jul 2021 13:54:08 +0000 (15:54 +0200)]
patch 8.2.3100: Vim9: no error when using type with unknown number of args

Problem:    Vim9: no error when using type with unknown number of arguments.
Solution:   Do not ignore argument count of -1. (closes #8492)

3 years agopatch 8.2.3099: Vim9: missing catch/finally not reported at script level v8.2.3099
Bram Moolenaar [Sun, 4 Jul 2021 12:47:30 +0000 (14:47 +0200)]
patch 8.2.3099: Vim9: missing catch/finally not reported at script level

Problem:    Vim9: missing catch/finally not reported at script level.
Solution:   Give an error. (closes #8487)

3 years agopatch 8.2.3098: popup window test is flaky on MS-Windows with GUI v8.2.3098
Bram Moolenaar [Sun, 4 Jul 2021 12:00:55 +0000 (14:00 +0200)]
patch 8.2.3098: popup window test is flaky on MS-Windows with GUI

Problem:    Popup window test is flaky on MS-Windows with GUI.
Solution:   Skip the check in this situation.

3 years agopatch 8.2.3097: crash when using "quit" at recovery prompt v8.2.3097
Bram Moolenaar [Sun, 4 Jul 2021 11:27:11 +0000 (13:27 +0200)]
patch 8.2.3097: crash when using "quit" at recovery prompt

Problem:    Crash when using "quit" at recovery prompt and autocommands are
            triggered.
Solution:   Block autocommands when creating an empty buffer to use as the
            current buffer. (closes #8506)

3 years agopatch 8.2.3096: temp files remain after running tests v8.2.3096
Dominique Pelle [Sun, 4 Jul 2021 10:30:06 +0000 (12:30 +0200)]
patch 8.2.3096: temp files remain after running tests

Problem:    Temp files remain after running tests.
Solution:   Delete the right files. (Dominique Pellé, closes #8509)

3 years agopatch 8.2.3095: with 'virtualedit' set to "block" block selection is wrong v8.2.3095
Bram Moolenaar [Sat, 3 Jul 2021 20:15:17 +0000 (22:15 +0200)]
patch 8.2.3095: with 'virtualedit' set to "block" block selection is wrong

Problem:    With 'virtualedit' set to "block" block selection is wrong after
            using "$".  (Marco Trosi)
Solution:   Compute the longest selected line. (closes #8495)

3 years agopatch 8.2.3094: Test_popup_atcursor_pos() fails without the conceal feature v8.2.3094
Dominique Pelle [Sat, 3 Jul 2021 19:41:38 +0000 (21:41 +0200)]
patch 8.2.3094: Test_popup_atcursor_pos() fails without the conceal feature

Problem:    Test_popup_atcursor_pos() fails without the conceal feature.
Solution:   Add a check for the conceal feature. (Dominique Pellé,
            closes #8505)

3 years agopatch 8.2.3093: tablabel_tooltip test fails with Athena v8.2.3093
Bram Moolenaar [Sat, 3 Jul 2021 19:37:59 +0000 (21:37 +0200)]
patch 8.2.3093: tablabel_tooltip test fails with Athena

Problem:    tablabel_tooltip test fails with Athena. (Dominique Pellé)
Solution:   Skip the test when using Athena. (closes #8508)

3 years agopatch 8.2.3092: Vim9: builtin function test fails without +channel feature v8.2.3092
Dominique Pelle [Sat, 3 Jul 2021 17:27:37 +0000 (19:27 +0200)]
patch 8.2.3092: Vim9: builtin function test fails without +channel feature

Problem:    Vim9: builtin function test fails without the +channel feature.
Solution:   Check the +channel feature is supported. (Dominique Pellé,
            closes #8507)

3 years agopatch 8.2.3091: Vim9: default argument expr. cannot use previous argument v8.2.3091
Bram Moolenaar [Sat, 3 Jul 2021 16:56:53 +0000 (18:56 +0200)]
patch 8.2.3091: Vim9: default argument expr. cannot use previous argument

Problem:    Vim9: default argument expression cannot use previous argument
Solution:   Correct argument index. (closes #8496)

3 years agopatch 8.2.3090: in rare cases the cursor may be somewhere in a folded line v8.2.3090
Bram Moolenaar [Sat, 3 Jul 2021 16:04:11 +0000 (18:04 +0200)]
patch 8.2.3090: in rare cases the cursor may be somewhere in a folded line

Problem:    With concealing enabled and indirectly closing a fold the cursor
            may be somewhere in a folded line.
Solution:   Recompute the cursor position when the cursor line can be
            concealed. (closes #8480)

3 years agopatch 8.2.3089: garbage collection has useless code v8.2.3089
Bram Moolenaar [Sat, 3 Jul 2021 14:33:16 +0000 (16:33 +0200)]
patch 8.2.3089: garbage collection has useless code

Problem:    Garbage collection has useless code.
Solution:   Bail out when aborting. (closes #8504)

3 years agopatch 8.2.3088: with 'virtualedit' set to "block" Visual highlight is wrong v8.2.3088
Bram Moolenaar [Sat, 3 Jul 2021 13:08:37 +0000 (15:08 +0200)]
patch 8.2.3088: with 'virtualedit' set to "block" Visual highlight is wrong

Problem:    With 'virtualedit' set to "block" Visual highlight is wrong after
            using "$".  (Marco Trosi)
Solution:   Do not set w_old_cursor_lcol to MAXCOL. (closes #8495)

3 years agopatch 8.2.3087: Gemtext files are not recognized v8.2.3087
Bram Moolenaar [Sat, 3 Jul 2021 11:51:44 +0000 (13:51 +0200)]
patch 8.2.3087: Gemtext files are not recognized

Problem:    Gemtext files are not recognized.
Solution:   Recognize .gmi and .gemini files. (closes #8427)

3 years agopatch 8.2.3086: Vim9: breakpoint on "for" does not work v8.2.3086
Bram Moolenaar [Sat, 3 Jul 2021 11:36:31 +0000 (13:36 +0200)]
patch 8.2.3086: Vim9: breakpoint on "for" does not work

Problem:    Vim9: breakpoint on "for" does not work.
Solution:   Use the right line number in ISN_DEBUG. (closes #8486)

3 years agopatch 8.2.3085: JSONC files are not recognized v8.2.3085
Izhak Jakov [Sat, 3 Jul 2021 11:09:37 +0000 (13:09 +0200)]
patch 8.2.3085: JSONC files are not recognized

Problem:    JSONC files are not recognized.
Solution:   Recognize .jsonc files. (Izhak Jakov, closes #8500)

3 years agopatch 8.2.3084: Vim9: builtin function argument types are not checked v8.2.3084
Yegappan Lakshmanan [Sat, 3 Jul 2021 09:58:12 +0000 (11:58 +0200)]
patch 8.2.3084: Vim9: builtin function argument types are not checked

Problem:    Vim9: builtin function argument types are not checked at compile
            time.
Solution:   Add argument types. (Yegappan Lakshmanan, closes #8503)

3 years agopatch 8.2.3083: crash when passing null string to charclass() v8.2.3083
Christian Brabandt [Fri, 2 Jul 2021 18:19:31 +0000 (20:19 +0200)]
patch 8.2.3083: crash when passing null string to charclass()

Problem:    Crash when passing null string to charclass().
Solution:   Bail out when string pointer is NULL. (Christian Brabandt,
            closes #8498, closes #8260)