]> granicus.if.org Git - vim/log
vim
3 years agopatch 8.2.3411: Vim9: crash when using base name of import v8.2.3411
Bram Moolenaar [Tue, 7 Sep 2021 20:12:19 +0000 (22:12 +0200)]
patch 8.2.3411: Vim9: crash when using base name of import

Problem:    Vim9: crash when using base name of import. (Naohiro Ono)
Solution:   Check the import flags. (closes #8843)

3 years agopatch 8.2.3410: crash with linebreak, listchars and large tabstop v8.2.3410
Bram Moolenaar [Tue, 7 Sep 2021 18:45:31 +0000 (20:45 +0200)]
patch 8.2.3410: crash with linebreak, listchars and large tabstop

Problem:    Crash with linebreak, listchars and large tabstop.
Solution:   Account for different size listchars for a tab. (closes #8841)

3 years agopatch 8.2.3409: reading beyond end of line with invalid utf-8 character v8.2.3409
Bram Moolenaar [Tue, 7 Sep 2021 17:26:53 +0000 (19:26 +0200)]
patch 8.2.3409: reading beyond end of line with invalid utf-8 character

Problem:    Reading beyond end of line with invalid utf-8 character.
Solution:   Check for NUL when advancing.

3 years agopatch 8.2.3408: can delete a numbered function v8.2.3408
Bram Moolenaar [Mon, 6 Sep 2021 18:56:56 +0000 (20:56 +0200)]
patch 8.2.3408: can delete a numbered function

Problem:    Can delete a numbered function. (Naohiro Ono)
Solution:   Disallow deleting a numbered function. (closes #8760)

3 years agopatch 8.2.3407: using uninitialized memory with "let g:['bar'] = 2" v8.2.3407
Bram Moolenaar [Mon, 6 Sep 2021 17:19:45 +0000 (19:19 +0200)]
patch 8.2.3407: using uninitialized memory with "let g:['bar'] = 2"

Problem:    Using uninitialized memory with "let g:['bar'] = 2".
Solution:   Initialize v_type of a new dict item.

3 years agopatch 8.2.3406: on some systems tests fail without _REENTRANT v8.2.3406
Bram Moolenaar [Mon, 6 Sep 2021 16:57:30 +0000 (18:57 +0200)]
patch 8.2.3406: on some systems tests fail without _REENTRANT

Problem:    On some systems tests fail without _REENTRANT. (Elimar
            Riesebieter)
Solution:   Add -D_REENTRANT in configure. (closes #7402)

3 years agopatch 8.2.3405: cannot have a comment line in a {} block of a user command v8.2.3405
Bram Moolenaar [Mon, 6 Sep 2021 15:10:59 +0000 (17:10 +0200)]
patch 8.2.3405: cannot have a comment line in a {} block of a user command

Problem:    Cannot have a comment line in a {} block of a user command.
Solution:   Continue after the line break. (closes #8837)

3 years agopatch 8.2.3404: Vim9: no error for white space before "(" v8.2.3404
Bram Moolenaar [Sun, 5 Sep 2021 14:36:23 +0000 (16:36 +0200)]
patch 8.2.3404: Vim9: no error for white space before "("

Problem:    Vim9: no error for white space before "(".
Solution:   Give an error, like in a compiled function.

3 years agopatch 8.2.3403: memory leak for :retab with invalid argument v8.2.3403
Bram Moolenaar [Sat, 4 Sep 2021 19:20:41 +0000 (21:20 +0200)]
patch 8.2.3403: memory leak for :retab with invalid argument

Problem:    Memory leak for :retab with invalid argument.
Solution:   Free the memory.  Make error messages consistent.

3 years agopatch 8.2.3402: invalid memory access when using :retab with large value v8.2.3402
Bram Moolenaar [Sat, 4 Sep 2021 16:47:28 +0000 (18:47 +0200)]
patch 8.2.3402: invalid memory access when using :retab with large value

Problem:    Invalid memory access when using :retab with large value.
Solution:   Check the number is positive.

3 years agopatch 8.2.3401: Vim9: cannot use negative count with finddir() and findfile() v8.2.3401
Bram Moolenaar [Sat, 4 Sep 2021 12:49:56 +0000 (14:49 +0200)]
patch 8.2.3401: Vim9: cannot use negative count with finddir() and findfile()

Problem:    Vim9: cannot use a negative count with finddir() and findfile().
Solution:   Adjust the return type. (closes #8776)

3 years agopatch 8.2.3400: ":z!" is not supported v8.2.3400
Dominique Pelle [Sat, 4 Sep 2021 11:44:01 +0000 (13:44 +0200)]
patch 8.2.3400: ":z!" is not supported

Problem:    ":z!" is not supported.
Solution:   Make ":z!" work and add tests. (Dominique Pellé, closes #8836)
            Use display height instead of current window height.

3 years agopatch 8.2.3399: Octave files are not recognized v8.2.3399
Bram Moolenaar [Fri, 3 Sep 2021 17:21:36 +0000 (19:21 +0200)]
patch 8.2.3399: Octave files are not recognized

Problem:    Octave files are not recognized.
Solution:   Detect Octave files. (Doug Kearns)

3 years agopatch 8.2.3398: html text objects are not fully tested v8.2.3398
Dominique Pelle [Fri, 3 Sep 2021 14:50:16 +0000 (16:50 +0200)]
patch 8.2.3398: html text objects are not fully tested

Problem:    Html text objects are not fully tested.
Solution:   Add tests for dbcs encoding and different number of backslashes.
            (Dominique Pellé, closes #8831)

3 years agopatch 8.2.3397: no test for what 8.2.3391 fixes v8.2.3397
Yegappan Lakshmanan [Thu, 2 Sep 2021 18:05:26 +0000 (20:05 +0200)]
patch 8.2.3397: no test for what 8.2.3391 fixes

Problem:    No test for what 8.2.3391 fixes.
Solution:   Add a test. (Yegappan Lakshmanan, closes #8828)

3 years agopatch 8.2.3396: when libcall() fails invalid pointer may be used v8.2.3396
Bram Moolenaar [Thu, 2 Sep 2021 17:53:07 +0000 (19:53 +0200)]
patch 8.2.3396: when libcall() fails invalid pointer may be used

Problem:    When libcall() fails invalid pointer may be used.
Solution:   Initialize the string to NULL. (Yasuhiro Matsumoto, closes #8829)

3 years agopatch 8.2.3395: Vim9: expression breakpoint not checked in :def function v8.2.3395
Bram Moolenaar [Thu, 2 Sep 2021 16:49:06 +0000 (18:49 +0200)]
patch 8.2.3395: Vim9: expression breakpoint not checked in :def function

Problem:    Vim9: expression breakpoint not checked in :def function.
Solution:   Always compile a function for debugging if there is an expression
            breakpoint. (closes #8803)

3 years agopatch 8.2.3394: filler lines are wrong when changing text in diff mode v8.2.3394
Bram Moolenaar [Wed, 1 Sep 2021 14:02:07 +0000 (16:02 +0200)]
patch 8.2.3394: filler lines are wrong when changing text in diff mode

Problem:    Filler lines are wrong when changing text in diff mode.
Solution:   Don't change the filler lines on every change.  Check
            scrollbinding when updating the filler lines. (closes #8809)

3 years agopatch 8.2.3393: escaping for fish shell is skipping some characters v8.2.3393
Bram Moolenaar [Wed, 1 Sep 2021 12:31:51 +0000 (14:31 +0200)]
patch 8.2.3393: escaping for fish shell is skipping some characters

Problem:    Escaping for fish shell is skipping some characters.
Solution:   Escape character after backslash if needed. (Jason Cox,
            closes #8827)

3 years agopatch 8.2.3392: augroup completion escapes regexp pattern characters v8.2.3392
Bram Moolenaar [Wed, 1 Sep 2021 11:03:39 +0000 (13:03 +0200)]
patch 8.2.3392: augroup completion escapes regexp pattern characters

Problem:    augroup completion escapes regexp pattern characters.
Solution:   Do not escape the augroup name. (closes #8826)

3 years agopatch 8.2.3391: crash with combination of 'linebreak' and other options v8.2.3391
Bram Moolenaar [Tue, 31 Aug 2021 18:57:55 +0000 (20:57 +0200)]
patch 8.2.3391: crash with combination of 'linebreak' and other options

Problem:    Crash with combination of 'linebreak' and other options.
Solution:   Avoid n_extra to become negative. (Christian Brabandt,
            closes #8817)

3 years agopatch 8.2.3390: included xdiff code is outdated v8.2.3390
Christian Brabandt [Tue, 31 Aug 2021 18:46:39 +0000 (20:46 +0200)]
patch 8.2.3390: included xdiff code is outdated

Problem:    Included xdiff code is outdated.
Solution:   Sync with xdiff in git 2.33. (Christian Brabandt, closes #8431)

3 years agopatch 8.2.3389: cannot stop insert mode completion without side effects v8.2.3389
zeertzjq [Tue, 31 Aug 2021 17:12:51 +0000 (19:12 +0200)]
patch 8.2.3389: cannot stop insert mode completion without side effects

Problem:    Cannot stop insert mode completion without side effects.
Solution:   Add CTRL-X CTRL-Z. (closes #8821)

3 years agopatch 8.2.3388: fnamemodify('path/..', ':p') differs from using 'path/../' v8.2.3388
Bram Moolenaar [Mon, 30 Aug 2021 19:26:16 +0000 (21:26 +0200)]
patch 8.2.3388: fnamemodify('path/..', ':p') differs from using 'path/../'

Problem:    fnamemodify('path/..', ':p') differs from using 'path/../'.
Solution:   Include the "/.." in the directory name. (closes #8808)

3 years agopatch 8.2.3387: compiler warning for non-static function v8.2.3387
Dominique Pelle [Mon, 30 Aug 2021 17:57:34 +0000 (19:57 +0200)]
patch 8.2.3387: compiler warning for non-static function

Problem:    Compiler warning for non-static function.
Solution:   Make the function static. (Dominique Pellé, closes #8816)

3 years agopatch 8.2.3386: using uninitialized memory v8.2.3386
Dominique Pelle [Sun, 29 Aug 2021 20:12:56 +0000 (22:12 +0200)]
patch 8.2.3386: using uninitialized memory

Problem:    Using uninitialized memory.
Solution:   Initialize the rm_ic field. (Dominique Pellé, closes #8800)

3 years agoUpdate runtime files
Bram Moolenaar [Sun, 29 Aug 2021 19:55:35 +0000 (21:55 +0200)]
Update runtime files

3 years agopatch 8.2.3385: escaping for fish shell does not work properly v8.2.3385
Jason Cox [Sun, 29 Aug 2021 10:36:49 +0000 (12:36 +0200)]
patch 8.2.3385: escaping for fish shell does not work properly

Problem:    Escaping for fish shell does not work properly.
Solution:   Insert a backslash before a backslash. (Jason Cox, closes #8810)

3 years agopatch 8.2.3384: cannot disable modeline for an individual file v8.2.3384
Hu Jialun [Sat, 28 Aug 2021 18:42:50 +0000 (20:42 +0200)]
patch 8.2.3384: cannot disable modeline for an individual file

Problem:    Cannot disable modeline for an individual file.
Solution:   Recognize "nomodeline" in a modeline. (Hu Jialun, closes #8798)

3 years agopatch 8.2.3383: Vim9: completion for :disassemble adds parenthesis v8.2.3383
naohiro ono [Sat, 28 Aug 2021 13:56:06 +0000 (15:56 +0200)]
patch 8.2.3383: Vim9: completion for :disassemble adds parenthesis

Problem:    Vim9: completion for :disassemble adds parenthesis.
Solution:   Don't add parenthesis. (Naohiro Ono, closes #8802)

3 years agopatch 8.2.3382: crash when getting the type of a NULL partial v8.2.3382
Bram Moolenaar [Sat, 28 Aug 2021 12:58:44 +0000 (14:58 +0200)]
patch 8.2.3382: crash when getting the type of a NULL partial

Problem:    Crash when getting the type of a NULL partial.
Solution:   Check for NULL. (closes #8260)

3 years agopatch 8.2.3381: crash when using NULL list with sign functions v8.2.3381
Bram Moolenaar [Sat, 28 Aug 2021 12:42:25 +0000 (14:42 +0200)]
patch 8.2.3381: crash when using NULL list with sign functions

Problem:    Crash when using NULL list with sign functions.
Solution:   Handle a NULL list like an empty list. (issue #8260)

3 years agopatch 8.2.3380: crash when using NULL string for funcref() v8.2.3380
Bram Moolenaar [Sat, 28 Aug 2021 10:49:27 +0000 (12:49 +0200)]
patch 8.2.3380: crash when using NULL string for funcref()

Problem:    Crash when using NULL string for funcref().
Solution:   Check for NULL argument. (issue #8260)

3 years agopatch 8.2.3379: crash when using NULL job v8.2.3379
Bram Moolenaar [Sat, 28 Aug 2021 10:30:12 +0000 (12:30 +0200)]
patch 8.2.3379: crash when using NULL job

Problem:    Crash when using NULL job.
Solution:   Copy static string into buffer. (issue #8260)

3 years agopatch 8.2.3378: MS-Windows: completing environment variables with % is wrong v8.2.3378
Albert Liu [Fri, 27 Aug 2021 18:59:35 +0000 (20:59 +0200)]
patch 8.2.3378: MS-Windows: completing environment variables with % is wrong

Problem:    MS-Windows: completing environment variables with % is wrong.
Solution:   Only complete environment variables with $. (Albert Liu,
            closes #8791)

3 years agopatch 8.2.3377: Vim9: :disass completion does not understand "s:" v8.2.3377
Bram Moolenaar [Thu, 26 Aug 2021 14:39:58 +0000 (16:39 +0200)]
patch 8.2.3377: Vim9: :disass completion does not understand "s:"

Problem:    Vim9: :disass completion does not understand "s:".
Solution:   Expand "s:" to a pattern. (closes #8780)

3 years agopatch 8.2.3376: Vim9: no warning that "@r" does not do anything v8.2.3376
Bram Moolenaar [Wed, 25 Aug 2021 20:37:36 +0000 (22:37 +0200)]
patch 8.2.3376: Vim9: no warning that "@r" does not do anything

Problem:    Vim9: no warning that "@r" does not do anything.
Solution:   Give a "no effect" error. (closes #8779)

3 years agopatch 8.2.3375: using uninitialized memory v8.2.3375
Bram Moolenaar [Wed, 25 Aug 2021 15:31:37 +0000 (17:31 +0200)]
patch 8.2.3375: using uninitialized memory

Problem:    Using uninitialized memory.
Solution:   Initialize textprop_save_len.

3 years agopatch 8.2.3374: Pyret files are not recognized v8.2.3374
Bram Moolenaar [Wed, 25 Aug 2021 15:10:39 +0000 (17:10 +0200)]
patch 8.2.3374: Pyret files are not recognized

Problem:    Pyret files are not recognized.
Solution:   Recognize .arr files as Pyret. (Doug Kearns)

3 years agopatch 8.2.3373: text property test fails on MS-Windows v8.2.3373
Bram Moolenaar [Wed, 25 Aug 2021 15:02:00 +0000 (17:02 +0200)]
patch 8.2.3373: text property test fails on MS-Windows

Problem:    text property test fails on MS-Windows.
Solution:   Set fileformat to "unix"

3 years agopatch 8.2.3372: line2byte() value wrong when adding a text property v8.2.3372
Bram Moolenaar [Wed, 25 Aug 2021 14:40:03 +0000 (16:40 +0200)]
patch 8.2.3372: line2byte() value wrong when adding a text property

Problem:    line2byte() value wrong when adding a text property. (Yuto Kimura)
Solution:   Adjust length for text property. (closes #8772)  Also fix it for
            deleting a line.

3 years agopatch 8.2.3371: Vim9: :$ENV cannot be followed by ->func() in next line v8.2.3371
Bram Moolenaar [Tue, 24 Aug 2021 19:56:03 +0000 (21:56 +0200)]
patch 8.2.3371: Vim9: :$ENV cannot be followed by ->func() in next line

Problem:    Vim9: :$ENV cannot be followed by ->func() in next line.
Solution:   Use "$ENV" as the start of an expression. (closes #8790)

3 years agopatch 8.2.3370: Vim9: no check for white space before type in declaration v8.2.3370
Bram Moolenaar [Mon, 23 Aug 2021 20:22:45 +0000 (22:22 +0200)]
patch 8.2.3370: Vim9: no check for white space before type in declaration

Problem:    Vim9: no check for white space before type in declaration.
            (Naohiro Ono)
Solution:   Check for white space like in a compiled function. (closes #8785)

3 years agopatch 8.2.3369: auto formatting after "cw" leaves cursor in wrong spot v8.2.3369
Bram Moolenaar [Mon, 23 Aug 2021 19:19:01 +0000 (21:19 +0200)]
patch 8.2.3369: auto formatting after "cw" leaves cursor in wrong spot

Problem:    Auto formatting after "cw" leaves cursor in wrong spot.
Solution:   Do not auto-format after the delete. (closes #8789)

3 years agopatch 8.2.3368: not all Racket files are recognized v8.2.3368
Bram Moolenaar [Mon, 23 Aug 2021 18:48:43 +0000 (20:48 +0200)]
patch 8.2.3368: not all Racket files are recognized

Problem:    Not all Racket files are recognized.
Solution:   Also recognize .rktl and .rktd files. (Doug Kearns)

3 years agopatch 8.2.3367: Vim9: :@r executing a register is inconsistent v8.2.3367
Bram Moolenaar [Sun, 22 Aug 2021 20:44:11 +0000 (22:44 +0200)]
patch 8.2.3367: Vim9: :@r executing a register is inconsistent

Problem:    Vim9: :@r executing a register is inconsistent.
Solution:   Use "@r" as the start of an expression. (issue #8779)

3 years agopatch 8.2.3366: Vim9: debugging elseif does not stop before condition v8.2.3366
Bram Moolenaar [Sun, 22 Aug 2021 11:35:31 +0000 (13:35 +0200)]
patch 8.2.3366: Vim9: debugging elseif does not stop before condition

Problem:    Vim9: debugging elseif does not stop before condition.
Solution:   Move debug statement to after the jump. (closes #8781)

3 years agopatch 8.2.3365: Vim9: cannot use option for all operations v8.2.3365
Bram Moolenaar [Sat, 21 Aug 2021 18:50:35 +0000 (20:50 +0200)]
patch 8.2.3365: Vim9: cannot use option for all operations

Problem:    Vim9: cannot use option for all operations.
Solution:   Recognize more operations. (closes #8779)

3 years agopatch 8.2.3364: Vim9: crash when :for is skipped v8.2.3364
rbtnn [Sat, 21 Aug 2021 15:26:50 +0000 (17:26 +0200)]
patch 8.2.3364: Vim9: crash when :for is skipped

Problem:    Vim9: crash when :for is skipped.
Solution:   Skip more code generation. (Naruhiko Nishino, closes #8777)

3 years agopatch 8.2.3363: when :edit reuses the current buffer the alternate file is set v8.2.3363
Bram Moolenaar [Sat, 21 Aug 2021 15:13:14 +0000 (17:13 +0200)]
patch 8.2.3363: when :edit reuses the current buffer the alternate file is set

Problem:    When :edit reuses the current buffer the alternate file is set to
            the same buffer.
Solution:   Only set the alternate file when not reusing the buffer.
            (closes #8783)

3 years agopatch 8.2.3362: buffer overflow when completing long tag name v8.2.3362
Gregory Anders [Sat, 21 Aug 2021 14:21:19 +0000 (16:21 +0200)]
patch 8.2.3362: buffer overflow when completing long tag name

Problem:    Buffer overflow when completing long tag name.
Solution:   Allocate the buffer dynamically. (Gregory Anders, closes #8769)

3 years agopatch 8.2.3361: Vim9: crash with nested :while v8.2.3361
rbtnn [Fri, 20 Aug 2021 18:54:25 +0000 (20:54 +0200)]
patch 8.2.3361: Vim9: crash with nested :while

Problem:    Vim9: crash with nested :while.
Solution:   Handle skipping better. (Naruhiko Nishino, closes #8778)

3 years agopatch 8.2.3360: user function completion fails with dict function v8.2.3360
naohiro ono [Thu, 19 Aug 2021 19:20:41 +0000 (21:20 +0200)]
patch 8.2.3360: user function completion fails with dict function

Problem:    User function completion fails with dict function.
Solution:   Do not stop sequencing through the list if user functions when
            encountering an empty name. (Naohiro Ono, closes #8765,
            closes #8774)

3 years agopatch 8.2.3359: Vim9: error for type when variable is not set v8.2.3359
Bram Moolenaar [Thu, 19 Aug 2021 19:08:30 +0000 (21:08 +0200)]
patch 8.2.3359: Vim9: error for type when variable is not set

Problem:    Vim9: error for type when variable is not set.
Solution:   Give a specific error for a NULL function. (closes #8773)

3 years agopatch 8.2.3358: structurizr files are not recognized v8.2.3358
Bastian Venthur [Tue, 17 Aug 2021 21:44:54 +0000 (23:44 +0200)]
patch 8.2.3358: structurizr files are not recognized

Problem:    Structurizr files are not recognized.
Solution:   Recognize the file by contents. (Bastian Venthur, closes #8764)

3 years agopatch 8.2.3357: crash when 'virtualedit' is set and window is narrow v8.2.3357
Bram Moolenaar [Tue, 17 Aug 2021 20:14:29 +0000 (22:14 +0200)]
patch 8.2.3357: crash when 'virtualedit' is set and window is narrow

Problem:    Crash when 'virtualedit' is set and window is narrow. ()
Solution:   Check that width is not zero. (closes #8767)

3 years agopatch 8.2.3356: adding many text properties requires a lot of function calls v8.2.3356
Yegappan Lakshmanan [Mon, 16 Aug 2021 19:39:09 +0000 (21:39 +0200)]
patch 8.2.3356: adding many text properties requires a lot of function calls

Problem:    Adding many text properties requires a lot of function calls.
Solution:   Add the prop_add_list() function. (Yegappan Lakshmanan,
            closes #8751)

3 years agopatch 8.2.3355: MS-Windows: compiler warning for 64-32 bit conversion v8.2.3355
Bram Moolenaar [Mon, 16 Aug 2021 19:15:32 +0000 (21:15 +0200)]
patch 8.2.3355: MS-Windows: compiler warning for 64-32 bit conversion

Problem:    MS-Windows: compiler warning for 64-32 bit conversion.
Solution:   Add type casts.

3 years agopatch 8.2.3354: build failure with +byte_offset but without +textprop v8.2.3354
Bram Moolenaar [Sun, 15 Aug 2021 20:18:04 +0000 (22:18 +0200)]
patch 8.2.3354: build failure with +byte_offset but without +textprop

Problem:    Build failure with +byte_offset but without +textprop. (John
            Marriott)
Solution:   Adjust the #ifdef.

3 years agopatch 8.2.3353: Vim9: type of argument for negate not checked at compile time v8.2.3353
Bram Moolenaar [Sun, 15 Aug 2021 18:36:28 +0000 (20:36 +0200)]
patch 8.2.3353: Vim9: type of argument for negate not checked at compile time

Problem:    Vim9: type of argument for negate not checked at compile time.
Solution:   Add a compile time check.

3 years agopatch 8.2.3352: Vim9: error for nested :enddef has wrong line number v8.2.3352
Bram Moolenaar [Sun, 15 Aug 2021 17:28:05 +0000 (19:28 +0200)]
patch 8.2.3352: Vim9: error for nested :enddef has wrong line number

Problem:    Vim9: error for nested :enddef has wrong line number.
Solution:   Compute the line number.

3 years agopatch 8.2.3351: Vim9: using a function by name may delete it v8.2.3351
Bram Moolenaar [Sun, 15 Aug 2021 14:08:36 +0000 (16:08 +0200)]
patch 8.2.3351: Vim9: using a function by name may delete it

Problem:    Vim9: using a function by name may delete it. (Naohiro Ono)
Solution:   Increment the reference count when using a function by name.
            (closes #8760)

3 years agopatch 8.2.3350: text properties test fails on MS-Windows v8.2.3350
Bram Moolenaar [Sun, 15 Aug 2021 13:04:41 +0000 (15:04 +0200)]
patch 8.2.3350: text properties test fails on MS-Windows

Problem:    Text properties test fails on MS-Windows.
Solution:   Set fileformat to unix.

3 years agopatch 8.2.3349: eval test for scriptversion fails v8.2.3349
Bram Moolenaar [Sun, 15 Aug 2021 12:39:13 +0000 (14:39 +0200)]
patch 8.2.3349: eval test for scriptversion fails

Problem:    Eval test for scriptversion fails.
Solution:   Fix off-by-one error.

3 years agopatch 8.2.3348: line2byte() returns wrong value after adding textprop v8.2.3348
Bram Moolenaar [Sun, 15 Aug 2021 12:28:40 +0000 (14:28 +0200)]
patch 8.2.3348: line2byte() returns wrong value after adding textprop

Problem:    line2byte() returns wrong value after adding textprop. (Yuto
            Kimura)
Solution:   Reduce the length by the size of the text property. (closes #8759)

3 years agopatch 8.2.3347: check for legacy script is incomplete v8.2.3347
Bram Moolenaar [Sun, 15 Aug 2021 11:49:42 +0000 (13:49 +0200)]
patch 8.2.3347: check for legacy script is incomplete

Problem:    Check for legacy script is incomplete. (Naohiro Ono)
Solution:   Also check the :legacy modifier.  Use for string concatenation
            with "." and others (issue #8756)

3 years agopatch 8.2.3346: Vim9: no error for using "." for concatenation after ":vim9cmd" v8.2.3346
Bram Moolenaar [Sat, 14 Aug 2021 19:35:40 +0000 (21:35 +0200)]
patch 8.2.3346: Vim9: no error for using "." for concatenation after ":vim9cmd"

Problem:    Vim9: no error for using "." for concatenation after ":vim9cmd".
            (Naohiro Ono)
Solution:   Check for Vim9 script syntax. (closes #8756)

3 years agoUpdate runtime files
Bram Moolenaar [Sat, 14 Aug 2021 19:25:52 +0000 (21:25 +0200)]
Update runtime files

3 years agopatch 8.2.3345: some code not covered by tests v8.2.3345
Dominique Pelle [Sat, 14 Aug 2021 19:11:51 +0000 (21:11 +0200)]
patch 8.2.3345: some code not covered by tests

Problem:    Some code not covered by tests.
Solution:   Add a few more tests. (Dominique Pellé, closes #8757)

3 years agopatch 8.2.3344: vimscript test fails v8.2.3344
Bram Moolenaar [Sat, 14 Aug 2021 13:16:00 +0000 (15:16 +0200)]
patch 8.2.3344: vimscript test fails

Problem:    Vimscript test fails.
Solution:   Have test verify first error instead of second

3 years agopatch 8.2.3343: Vim9: autoload test fails v8.2.3343
Bram Moolenaar [Sat, 14 Aug 2021 12:59:27 +0000 (14:59 +0200)]
patch 8.2.3343: Vim9: autoload test fails

Problem:    Vim9: autoload test fails.
Solution:   Adjust the way the second message is avoided

3 years agopatch 8.2.3342: test for :let errors fails v8.2.3342
Bram Moolenaar [Sat, 14 Aug 2021 12:27:30 +0000 (14:27 +0200)]
patch 8.2.3342: test for :let errors fails

Problem:    Test for :let errors fails.
Solution:   Adjust the test and how to avoid a second error message.

3 years agopatch 8.2.3341: Vim9: function call aborted despite try/catch v8.2.3341
Bram Moolenaar [Sat, 14 Aug 2021 12:01:05 +0000 (14:01 +0200)]
patch 8.2.3341: Vim9: function call aborted despite try/catch

Problem:    Vim9: function call aborted despite try/catch. (Naohiro Ono)
Solution:   Ignore error caught by try/catch. (closes #8755)

3 years agopatch 8.2.3340: accessing uninitialized pointer v8.2.3340
Bram Moolenaar [Fri, 13 Aug 2021 18:12:13 +0000 (20:12 +0200)]
patch 8.2.3340: accessing uninitialized pointer

Problem:    Accessing uninitialized pointer.
Solution:   Set pointer to NULL.

3 years agopatch 8.2.3339: Vim9: cannot lock a member in a local dict v8.2.3339
Bram Moolenaar [Fri, 13 Aug 2021 17:40:51 +0000 (19:40 +0200)]
patch 8.2.3339: Vim9: cannot lock a member in a local dict

Problem:    Vim9: cannot lock a member in a local dict.
Solution:   Get the local dict from the stack and pass it to get_lval().

3 years agopatch 8.2.3338: Vim9: no type check when assigning a list range v8.2.3338
Bram Moolenaar [Fri, 13 Aug 2021 16:20:09 +0000 (18:20 +0200)]
patch 8.2.3338: Vim9: no type check when assigning a list range

Problem:    Vim9: no type check when assigning a list range. (Naohiro Ono)
Solution:   Check the member type. (closes #8750)

3 years agopatch 8.2.3337: completing "call g:" returns entries with just "g:" v8.2.3337
Bram Moolenaar [Fri, 13 Aug 2021 15:48:25 +0000 (17:48 +0200)]
patch 8.2.3337: completing "call g:" returns entries with just "g:"

Problem:    Completing "call g:" returns entries with just "g:". (Naohiro Ono)
Solution:   Skip empty strings returned by get_user_func_name(). (closes #8753)

3 years agopatch 8.2.3336: behavior of negative index in list change changed v8.2.3336
Bram Moolenaar [Thu, 12 Aug 2021 19:12:56 +0000 (21:12 +0200)]
patch 8.2.3336: behavior of negative index in list change changed

Problem:    Behavior of negative index in list change changed. (Naruhiko
            Nishino)
Solution:   Only change it for Vim9 script. (closes #8749)

3 years agopatch 8.2.3335: Vim9: not enough tests run with Vim9 v8.2.3335
Bram Moolenaar [Thu, 12 Aug 2021 17:27:57 +0000 (19:27 +0200)]
patch 8.2.3335: Vim9: not enough tests run with Vim9

Problem:    Vim9: not enough tests run with Vim9.
Solution:   Run a few more tests in Vim9 script and :def function.  Fix that
            items(), keys() and values9) return zero for a NULL dict.
            Make join() return an empty string for a NULL list.  Make sort()
            return an empty list for a NULL list.

3 years agopatch 8.2.3334: Vim9: not enough tests run with Vim9 v8.2.3334
Bram Moolenaar [Thu, 12 Aug 2021 15:06:05 +0000 (17:06 +0200)]
patch 8.2.3334: Vim9: not enough tests run with Vim9

Problem:    Vim9: not enough tests run with Vim9.
Solution:   Run a few more tests in Vim9 script and :def function. Fix
            islocked().  Fix error for locking local variable.

3 years agopatch 8.2.3333: Vim9: not enough tests run with Vim9 v8.2.3333
Bram Moolenaar [Thu, 12 Aug 2021 08:39:10 +0000 (10:39 +0200)]
patch 8.2.3333: Vim9: not enough tests run with Vim9

Problem:    Vim9: not enough tests run with Vim9.
Solution:   Run a few more tests in Vim9 script and :def function.

3 years agopatch 8.2.3332: Vim9: cannot assign to range in list v8.2.3332
Bram Moolenaar [Wed, 11 Aug 2021 19:49:23 +0000 (21:49 +0200)]
patch 8.2.3332: Vim9: cannot assign to range in list

Problem:    Vim9: cannot assign to range in list.
Solution:   Implement overwriting a list range.

3 years agopatch 8.2.3331: Coverity warns for using value without boundary check v8.2.3331
Bram Moolenaar [Wed, 11 Aug 2021 15:13:54 +0000 (17:13 +0200)]
patch 8.2.3331: Coverity warns for using value without boundary check

Problem:    Coverity warns for using value without boundary check.
Solution:   Add a boundary check.

3 years agopatch 8.2.3330: Coverity reports using uninitialized field v8.2.3330
Bram Moolenaar [Wed, 11 Aug 2021 15:01:45 +0000 (17:01 +0200)]
patch 8.2.3330: Coverity reports using uninitialized field

Problem:    Coverity reports using uninitialized field.
Solution:   Initialize the field early.

3 years agopatch 8.2.3329: v_lock not set when getting value of environment variable v8.2.3329
Bram Moolenaar [Wed, 11 Aug 2021 14:47:26 +0000 (16:47 +0200)]
patch 8.2.3329: v_lock not set when getting value of environment variable

Problem:    v_lock not set when getting value of environment variable.
Solution:   Set v_lock to zero.

3 years agopatch 8.2.3328: Coverity error for not checking return value v8.2.3328
Bram Moolenaar [Wed, 11 Aug 2021 13:54:59 +0000 (15:54 +0200)]
patch 8.2.3328: Coverity error for not checking return value

Problem:    Coverity error for not checking return value.
Solution:   Check value is not negative.

3 years agopatch 8.2.3327: no check for sysconf() failing v8.2.3327
Zdenek Dohnal [Wed, 11 Aug 2021 12:20:05 +0000 (14:20 +0200)]
patch 8.2.3327: no check for sysconf() failing

Problem:    No check for sysconf() failing.
Solution:   If sysconf() fails use SIGSTKSZ for the signal stack size.
            (Zdenek Dohnal, closes #8743)

3 years agopatch 8.2.3326: Vim9: no error passing an empty list of the wrong type v8.2.3326
Bram Moolenaar [Tue, 10 Aug 2021 20:52:02 +0000 (22:52 +0200)]
patch 8.2.3326: Vim9: no error passing an empty list of the wrong type

Problem:    Vim9: no error passing an empty list of the wrong type.
Solution:   Use ISN_SETTYPE also for "list<any>". (closes #8732)

3 years agopatch 8.2.3325: digraph test fails when LC_ALL is set to "C" v8.2.3325
Bram Moolenaar [Tue, 10 Aug 2021 19:39:20 +0000 (21:39 +0200)]
patch 8.2.3325: digraph test fails when LC_ALL is set to "C"

Problem:    Digraph test fails when LC_ALL is set to "C".
Solution:   When restoring 'encoding' set it to "utf-8". (closes #8742)

3 years agopatch 8.2.3324: Vim9: Cannot use :silent with :endwhile v8.2.3324
Bram Moolenaar [Tue, 10 Aug 2021 17:53:01 +0000 (19:53 +0200)]
patch 8.2.3324: Vim9: Cannot use :silent with :endwhile

Problem:    Vim9: Cannot use :silent with :endwhile.
Solution:   Allow for using the :silent modifier. (closes #8737)

3 years agopatch 8.2.3323: Vim9: Cannot use :silent with :endwhile v8.2.3323
Bram Moolenaar [Tue, 10 Aug 2021 08:23:27 +0000 (10:23 +0200)]
patch 8.2.3323: Vim9: Cannot use :silent with :endwhile

Problem:    Vim9: Cannot use :silent with :endwhile.
Solution:   Allow for using the :silent modifier. (closes #8737)

3 years agopatch 8.2.3322: Vim9: checking type of dict does not check member type v8.2.3322
Bram Moolenaar [Mon, 9 Aug 2021 20:22:27 +0000 (22:22 +0200)]
patch 8.2.3322: Vim9: checking type of dict does not check member type

Problem:    Vim9: checking type of dict does not check member type.
Solution:   When getting the type of a typval use dv_type and lv_type.
            (closes #8732)

3 years agopatch 8.2.3321: some code is not tested v8.2.3321
Dominique Pelle [Mon, 9 Aug 2021 19:04:44 +0000 (21:04 +0200)]
patch 8.2.3321: some code is not tested

Problem:    Some code is not tested.
Solution:   Add some more tests. (Dominique Pellé, closes #8735)

3 years agopatch 8.2.3320: some local functions are not static v8.2.3320
Yegappan Lakshmanan [Mon, 9 Aug 2021 17:59:06 +0000 (19:59 +0200)]
patch 8.2.3320: some local functions are not static

Problem:    Some local functions are not static.
Solution:   Add "static".  Move snprintf() related code to strings.c.
            (Yegappan Lakshmanan, closes #8734)

3 years agopatch 8.2.3319: Coverity action on github does not work v8.2.3319
James McCoy [Mon, 9 Aug 2021 11:20:38 +0000 (13:20 +0200)]
patch 8.2.3319: Coverity action on github does not work

Problem:    Coverity action on github does not work.
Solution:   Remove undefined $SRCDIR. (James McCoy, closes #8739)

3 years agopatch 8.2.3318: Vim9: cannot ignore quotes in number at the command line v8.2.3318
Bram Moolenaar [Sun, 8 Aug 2021 17:56:28 +0000 (19:56 +0200)]
patch 8.2.3318: Vim9: cannot ignore quotes in number at the command line

Problem:    Vim9: cannot ignore quotes in number at the command line.
Solution:   Use in_vim9script() so that after ":vim9" quotes are ignored.

3 years agopatch 8.2.3317: Vim9: No error for missing white space before return type v8.2.3317
Bram Moolenaar [Sun, 8 Aug 2021 17:07:37 +0000 (19:07 +0200)]
patch 8.2.3317: Vim9: No error for missing white space before return type

Problem:    Vim9: No error for missing white space before return type.
Solution:   Check for white space. (closes #8733)

3 years agopatch 8.2.3316: float test fails v8.2.3316
Bram Moolenaar [Sun, 8 Aug 2021 13:51:10 +0000 (15:51 +0200)]
patch 8.2.3316: float test fails

Problem:    Float test fails.
Solution:   Add missing change.

3 years agopatch 8.2.3315: cannot use single quote in a float number for readability v8.2.3315
Bram Moolenaar [Sun, 8 Aug 2021 13:43:34 +0000 (15:43 +0200)]
patch 8.2.3315: cannot use single quote in a float number for readability

Problem:    Cannot use single quote in a float number for readability.
Solution:   Support single quotes like in numbers. (closes #8713)

3 years agopatch 8.2.3314: behavior of exists() in a :def function is unpredictable v8.2.3314
Bram Moolenaar [Sun, 8 Aug 2021 12:43:22 +0000 (14:43 +0200)]
patch 8.2.3314: behavior of exists() in a :def function is unpredictable

Problem:    Behavior of exists() in a :def function is unpredictable.
Solution:   Add exists_compiled().