]> granicus.if.org Git - vim/log
vim
3 years agopatch 8.2.3225: incsearch highlighting is attempted halfway a mapping v8.2.3225
Bram Moolenaar [Mon, 26 Jul 2021 19:11:32 +0000 (21:11 +0200)]
patch 8.2.3225: incsearch highlighting is attempted halfway a mapping

Problem:    Incsearch highlighting is attempted halfway a mapping.
Solution:   Only do incsearch highlighting if keys were typed or there is no
            more typeahead.

3 years agopatch 8.2.3224: cannot call script-local function after :vim9cmd v8.2.3224
Bram Moolenaar [Mon, 26 Jul 2021 19:10:11 +0000 (21:10 +0200)]
patch 8.2.3224: cannot call script-local function after :vim9cmd

Problem:    Cannot call script-local function after :vim9cmd. (Christian J.
            Robinson)
Solution:   Skip over "<SNR>123".

3 years agopatch 8.2.3223: Vim: using {} block in autoloade omnifunc fails v8.2.3223
Bram Moolenaar [Sun, 25 Jul 2021 18:27:06 +0000 (20:27 +0200)]
patch 8.2.3223: Vim: using {} block in autoloade omnifunc fails

Problem:    Vim: using {} block in autoloade omnifunc fails.
Solution:   Allow using {} block when text is locked. (closes #8631)

3 years agopatch 8.2.3222: Vim9: cannot used loop variable later as lambda argument v8.2.3222
Bram Moolenaar [Sun, 25 Jul 2021 16:07:00 +0000 (18:07 +0200)]
patch 8.2.3222: Vim9: cannot used loop variable later as lambda argument

Problem:    Vim9: cannot used loop variable later as lambda argument.
Solution:   When not in function context check the current block ID.
            (closes #8637)

3 years agopatch 8.2.3221: Vim9: argument types are not checked at compile time v8.2.3221
Yegappan Lakshmanan [Sun, 25 Jul 2021 13:57:32 +0000 (15:57 +0200)]
patch 8.2.3221: Vim9: argument types are not checked at compile time

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

3 years agopatch 8.2.3220: Test_term_setansicolors() fails in some configurations v8.2.3220
Dominique Pelle [Sun, 25 Jul 2021 13:41:44 +0000 (15:41 +0200)]
patch 8.2.3220: Test_term_setansicolors() fails in some configurations

Problem:    Test_term_setansicolors() fails in some configurations.
Solution:   Check available features. (Dominique Pellé, closes #8636)

3 years agopatch 8.2.3219: :find searches non-existing directories v8.2.3219
Christian Brabandt [Sun, 25 Jul 2021 13:08:05 +0000 (15:08 +0200)]
patch 8.2.3219: :find searches non-existing directories

Problem:    :find searches non-existing directories.
Solution:   Check the path is not "..".  Update help. (Christian Brabandt,
            closes #8612, closes #8533)

3 years agopatch 8.2.3218: when using xchaha20 crypt undo file is not removed v8.2.3218
Christian Brabandt [Sun, 25 Jul 2021 12:36:05 +0000 (14:36 +0200)]
patch 8.2.3218: when using xchaha20 crypt undo file is not removed

Problem:    When using xchaha20 crypt undo file is not removed.
Solution:   Reset 'undofile' and delete the file. (Christian Brabandt,
            closes #8630, closes #8467)

3 years agopatch 8.2.3217: build failure v8.2.3217
Bram Moolenaar [Sun, 25 Jul 2021 12:21:11 +0000 (14:21 +0200)]
patch 8.2.3217: build failure

Problem:    Build failure.
Solution:   Add missing changes.

3 years agopatch 8.2.3216: Vim9: crash when using variable in a loop at script level v8.2.3216
Bram Moolenaar [Sun, 25 Jul 2021 12:13:53 +0000 (14:13 +0200)]
patch 8.2.3216: Vim9: crash when using variable in a loop at script level

Problem:    Vim9: crash when using variable in a loop at script level.
Solution:   Do not clear the variable if a function was defined.
            Do not create a new entry in sn_var_vals every time.
            (closes #8628)

3 years agopatch 8.2.3215: Vim9: argument types are not checked at compile time v8.2.3215
Yegappan Lakshmanan [Sat, 24 Jul 2021 19:33:26 +0000 (21:33 +0200)]
patch 8.2.3215: Vim9: argument types are not checked at compile time

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

3 years agopatch 8.2.3214: MS-Windows: passing /D does not set the install location v8.2.3214
Christian Brabandt [Sat, 24 Jul 2021 19:19:42 +0000 (21:19 +0200)]
patch 8.2.3214: MS-Windows: passing /D does not set the install location

Problem:    MS-Windows: passing /D does not set the install location.
Solution:   Adjust how the installer uses $VIM. Update the documentation.
            (Christian Brabandt, closes #8605)

3 years agopatch 8.2.3213: NOCOMPOUNDSUGS entry in spell file not tested v8.2.3213
Dominique Pelle [Sat, 24 Jul 2021 18:51:13 +0000 (20:51 +0200)]
patch 8.2.3213: NOCOMPOUNDSUGS entry in spell file not tested

Problem:    NOCOMPOUNDSUGS entry in spell file not tested.
Solution:   Add a test. (Dominique Pellé, closes #8624)

3 years agopatch 8.2.3212: Vim9: execution speed can be improved v8.2.3212
Dominique Pelle [Sat, 24 Jul 2021 17:32:12 +0000 (19:32 +0200)]
patch 8.2.3212: Vim9: execution speed can be improved

Problem:    Vim9: execution speed can be improved.
Solution:   Use __builtin_expect() to have the compiler produce better code.
            (Dominique Pellé, closes #8613)

3 years agopatch 8.2.3211: Vim9: argument types are not checked at compile time v8.2.3211
Yegappan Lakshmanan [Sat, 24 Jul 2021 14:16:15 +0000 (16:16 +0200)]
patch 8.2.3211: Vim9: argument types are not checked at compile time

Problem:    Vim9: argument types are not checked at compile time.
Solution:   Add several more type checks. Fix type check for matchaddpos().
            (Yegappan Lakshmanan, closes #8619)

3 years agopatch 8.2.3210: Vim9: searchpair() sixth argument is compiled v8.2.3210
Bram Moolenaar [Sat, 24 Jul 2021 13:44:30 +0000 (15:44 +0200)]
patch 8.2.3210: Vim9: searchpair() sixth argument is compiled

Problem:    Vim9: searchpair() sixth argument is compiled. (Yegappan
            Lakshmanan)
Solution:   Only compile the fifth argument.

3 years agopatch 8.2.3209: Vim9: lambda doesn't find block-local variable v8.2.3209
Bram Moolenaar [Sat, 24 Jul 2021 12:14:52 +0000 (14:14 +0200)]
patch 8.2.3209: Vim9: lambda doesn't find block-local variable

Problem:    Vim9: lambda doesn't find block-local variable.
Solution:   Adjust how a script-local variable is found. (closes #8614)

3 years agopatch 8.2.3208: dynamic library load error does not mention why it failed v8.2.3208
Martin Tournoij [Sat, 24 Jul 2021 11:57:29 +0000 (13:57 +0200)]
patch 8.2.3208: dynamic library load error does not mention why it failed

Problem:    Dynamic library load error does not mention why it failed.
Solution:   Add the error message. (Martin Tournoij, closes #8621)

3 years agopatch 8.2.3207: Vim9: crash when compiling string fails v8.2.3207
Bram Moolenaar [Sat, 24 Jul 2021 11:18:48 +0000 (13:18 +0200)]
patch 8.2.3207: Vim9: crash when compiling string fails

Problem:    Vim9: crash when compiling string fails. (Yegappan Lakshmanan)
Solution:   Adjust the type stack length.

3 years agopatch 8.2.3206: Vim9: argument types are not checked at compile time v8.2.3206
Yegappan Lakshmanan [Fri, 23 Jul 2021 18:37:56 +0000 (20:37 +0200)]
patch 8.2.3206: Vim9: argument types are not checked at compile time

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

3 years agopatch 8.2.3205: Coverity reports a null pointer dereference v8.2.3205
Bram Moolenaar [Fri, 23 Jul 2021 17:30:19 +0000 (19:30 +0200)]
patch 8.2.3205: Coverity reports a null pointer dereference

Problem:    Coverity reports a null pointer dereference.
Solution:   Change the logic to avoid Coverity gets confused.

3 years agopatch 8.2.3204: display garbled when 'cursorline' is set and lines wrap v8.2.3204
Bram Moolenaar [Thu, 22 Jul 2021 19:33:03 +0000 (21:33 +0200)]
patch 8.2.3204: display garbled when 'cursorline' is set and lines wrap

Problem:    Display garbled when 'cursorline' is set and lines wrap. (Gabriel
            Dupras)
Solution:   Avoid inserting lines twice.

3 years agopatch 8.2.3203: Vim9: compiled string expression causes type error v8.2.3203
Bram Moolenaar [Thu, 22 Jul 2021 17:11:08 +0000 (19:11 +0200)]
patch 8.2.3203: Vim9: compiled string expression causes type error

Problem:    Vim9: compiled string expression causes type error. (Yegappan
            Lakshmanan)
Solution:   Remove the string type from the stack.

3 years agopatch 8.2.3202: Vim9: tests are only executed for legacy script v8.2.3202
Bram Moolenaar [Thu, 22 Jul 2021 16:48:53 +0000 (18:48 +0200)]
patch 8.2.3202: Vim9: tests are only executed for legacy script

Problem:    Vim9: tests are only executed for legacy script.
Solution:   Run more tests also for Vim9 script.  Fix uncovered problems.

3 years agopatch 8.2.3201: crash in test v8.2.3201
Bram Moolenaar [Thu, 22 Jul 2021 13:14:25 +0000 (15:14 +0200)]
patch 8.2.3201: crash in test

Problem:    Crash in test.
Solution:   Initialize "where".

3 years agopatch 8.2.3200: Vim9: hard to guess where a type error is given v8.2.3200
Bram Moolenaar [Thu, 22 Jul 2021 12:58:47 +0000 (14:58 +0200)]
patch 8.2.3200: Vim9: hard to guess where a type error is given

Problem:    Vim9: hard to guess where a type error is given.
Solution:   Add the function name where possible. (closes #8608)

3 years agopatch 8.2.3199: Vim9: execution speed can be improved v8.2.3199
Bram Moolenaar [Thu, 22 Jul 2021 10:26:14 +0000 (12:26 +0200)]
patch 8.2.3199: Vim9: execution speed can be improved

Problem:    Vim9: execution speed can be improved.
Solution:   Make the break counter static.

3 years agopatch 8.2.3198: cannot use 'formatlistpat' for breakindent v8.2.3198
Maxim Kim [Thu, 22 Jul 2021 09:46:59 +0000 (11:46 +0200)]
patch 8.2.3198: cannot use 'formatlistpat' for breakindent

Problem:    Cannot use 'formatlistpat' for breakindent.
Solution:   Use a negative list indent. (Maxim Kim, closes #8594)

3 years agopatch 8.2.3197: error messages are spread out v8.2.3197
Bram Moolenaar [Wed, 21 Jul 2021 20:20:33 +0000 (22:20 +0200)]
patch 8.2.3197: error messages are spread out

Problem:    Error messages are spread out.
Solution:   Move a few more error messages to errors.h.

3 years agopatch 8.2.3196: Vim9: bool expression with numbers only fails at runtime v8.2.3196
Bram Moolenaar [Wed, 21 Jul 2021 19:37:28 +0000 (21:37 +0200)]
patch 8.2.3196: Vim9: bool expression with numbers only fails at runtime

Problem:    Vim9: bool expression with numbers only fails at runtime.
Solution:   Check constant to be bool at compile time. (closes #8603)

3 years agopatch 8.2.3195: Vim9: unclear error when passing too many arguments to lambda v8.2.3195
Bram Moolenaar [Wed, 21 Jul 2021 18:38:46 +0000 (20:38 +0200)]
patch 8.2.3195: Vim9: unclear error when passing too many arguments to lambda

Problem:    Vim9: unclear error when passing too many arguments to lambda.
Solution:   Pass the expression itself instead of "[expression]".
            (closes #8604)

3 years agopatch 8.2.3194: Vim9: argument types are not checked at compile time v8.2.3194
Yegappan Lakshmanan [Wed, 21 Jul 2021 17:09:09 +0000 (19:09 +0200)]
patch 8.2.3194: Vim9: argument types are not checked at compile time

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

3 years agopatch 8.2.3193: screenpos() is wrong when 'display' is "lastline" v8.2.3193
Bram Moolenaar [Wed, 21 Jul 2021 16:04:56 +0000 (18:04 +0200)]
patch 8.2.3193: screenpos() is wrong when 'display' is "lastline"

Problem:    screenpos() is wrong when the last line is partially visible and
            'display' is "lastline".
Solution:   Also compute the position for a partially visible line.
            (closes #8599)

3 years agopatch 8.2.3192: build failure with small version v8.2.3192
Bram Moolenaar [Tue, 20 Jul 2021 20:29:19 +0000 (22:29 +0200)]
patch 8.2.3192: build failure with small version

Problem:    Build failure with small version (Tony Mechelynck).
Solution:   Remove stray #ifdef.

3 years agopatch 8.2.3191: Vim9: not enough code is tested v8.2.3191
Bram Moolenaar [Tue, 20 Jul 2021 20:21:59 +0000 (22:21 +0200)]
patch 8.2.3191: Vim9: not enough code is tested

Problem:    Vim9: not enough code is tested.
Solution:   Use CheckLegacyAndVim9Success() in more places.  Fix uncovered
            problems.

3 years agopatch 8.2.3190: error messages are spread out v8.2.3190
Bram Moolenaar [Tue, 20 Jul 2021 19:07:36 +0000 (21:07 +0200)]
patch 8.2.3190: error messages are spread out

Problem:    Error messages are spread out.
Solution:   Move error messages to errors.h and give them a clear name.

3 years agopatch 8.2.3189: Vim9: error when using "try|" v8.2.3189
Bram Moolenaar [Tue, 20 Jul 2021 17:18:44 +0000 (19:18 +0200)]
patch 8.2.3189: Vim9: error when using "try|"

Problem:    Vim9: error when using "try|".
Solution:   Allow for "|" right after a command.

3 years agopatch 8.2.3188: Vim9: argument types are not checked at compile time v8.2.3188
Yegappan Lakshmanan [Tue, 20 Jul 2021 15:51:51 +0000 (17:51 +0200)]
patch 8.2.3188: Vim9: argument types are not checked at compile time

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

3 years agopatch 8.2.3187: Vim9: popup timer callback is not compiled v8.2.3187
Bram Moolenaar [Mon, 19 Jul 2021 20:19:29 +0000 (22:19 +0200)]
patch 8.2.3187: Vim9: popup timer callback is not compiled

Problem:    Vim9: popup timer callback is not compiled.
Solution:   Compile the callback when creating the timer.

3 years agopatch 8.2.3186: Vim9: not all failures for import tested v8.2.3186
Bram Moolenaar [Mon, 19 Jul 2021 19:45:07 +0000 (21:45 +0200)]
patch 8.2.3186: Vim9: not all failures for import tested

Problem:    Vim9: not all failures for import tested
Solution:   Test more import failures

3 years agopatch 8.2.3185: Vim9: start of inline function found in comment line v8.2.3185
Bram Moolenaar [Mon, 19 Jul 2021 19:04:23 +0000 (21:04 +0200)]
patch 8.2.3185: Vim9: start of inline function found in comment line

Problem:    Vim9: start of inline function found in comment line.
Solution:   Do not check for inline function in comment line. (closes #8589)

3 years agopatch 8.2.3184: cannot add a digraph with a leading space v8.2.3184
mityu [Mon, 19 Jul 2021 18:07:21 +0000 (20:07 +0200)]
patch 8.2.3184: cannot add a digraph with a leading space

Problem:    Cannot add a digraph with a leading space.  It is not easy to list
            existing digraphs.
Solution:   Add setdigraph(), setdigraphlist(), getdigraph() and
            getdigraphlist(). (closes #8580)

3 years agopatch 8.2.3183: duplicate error numbers v8.2.3183
Bram Moolenaar [Mon, 19 Jul 2021 08:38:49 +0000 (10:38 +0200)]
patch 8.2.3183: duplicate error numbers

Problem:    Duplicate error numbers.
Solution:   Adjust the error numbers.

3 years agopatch 8.2.3182: Vim9: crash when using removing items from a constant list v8.2.3182
Bram Moolenaar [Sun, 18 Jul 2021 20:25:29 +0000 (22:25 +0200)]
patch 8.2.3182: Vim9: crash when using removing items from a constant list

Problem:    Vim9: crash when using removing items from a constant list.
            (Yegappan Lakshmanan)
Solution:   When a list was allocated with items copy them.

3 years agopatch 8.2.3181: Vim9: builtin function test fails without channel feature v8.2.3181
Dominique Pelle [Sun, 18 Jul 2021 19:44:37 +0000 (21:44 +0200)]
patch 8.2.3181: Vim9: builtin function test fails without channel feature

Problem:    Vim9: builtin function test fails without channel feature.
Solution:   Add feature checks. (Dominique Pellé, closes #8586)  Make feature
            checks more consistent.

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)