]> granicus.if.org Git - vim/log
vim
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().

3 years agopatch 8.2.3313: unused code in win_exchange() and frame_remove() v8.2.3313
gmntroll [Sat, 7 Aug 2021 20:35:52 +0000 (22:35 +0200)]
patch 8.2.3313: unused code in win_exchange() and frame_remove()

Problem:    Unused code in win_exchange() and frame_remove().
Solution:   Remove the code. (closes #8728)

3 years agopatch 8.2.3312: Vim9: after "if false" line breaks in expression not skipped v8.2.3312
Bram Moolenaar [Sat, 7 Aug 2021 16:12:40 +0000 (18:12 +0200)]
patch 8.2.3312: Vim9: after "if false" line breaks in expression not skipped

Problem:    Vim9: after "if false" line breaks in expression not skipped.
Solution:   Do parse the expression. (closes #8723)

3 years agopatch 8.2.3311: Vim9: check for DO_NOT_FREE_CNT is very slow v8.2.3311
Bram Moolenaar [Sat, 7 Aug 2021 15:20:16 +0000 (17:20 +0200)]
patch 8.2.3311: Vim9: check for DO_NOT_FREE_CNT is very slow

Problem:    Vim9: check for DO_NOT_FREE_CNT is very slow.
Solution:   Move to a separate function so it can be skipped by setting
            $TEST_SKIP_PAT.

3 years agopatch 8.2.3310: Vim9: unpack assignment does not mention source of type error v8.2.3310
Bram Moolenaar [Sat, 7 Aug 2021 14:30:42 +0000 (16:30 +0200)]
patch 8.2.3310: Vim9: unpack assignment does not mention source of type error

Problem:    Vim9: unpack assignment does not mention source of type error.
Solution:   Mention the argument number. (closes #8719)

3 years agopatch 8.2.3309: Vim9: divide by zero causes a crash v8.2.3309
Bram Moolenaar [Sat, 7 Aug 2021 13:50:23 +0000 (15:50 +0200)]
patch 8.2.3309: Vim9: divide by zero causes a crash

Problem:    Vim9: divide by zero causes a crash.
Solution:   Give an error message. (closes #8727)

3 years agopatch 8.2.3308: Vim9: no runtime check for argument type with varargs only v8.2.3308
Bram Moolenaar [Sat, 7 Aug 2021 13:35:36 +0000 (15:35 +0200)]
patch 8.2.3308: Vim9: no runtime check for argument type with varargs only

Problem:    Vim9: no runtime check for argument type if a function only has
            varargs.
Solution:   Also check argument types if uf_va_type is set. (closes #8715)

3 years agopatch 8.2.3307: Vim9: :echoconsole cannot access local variables v8.2.3307
Bram Moolenaar [Sat, 7 Aug 2021 13:05:47 +0000 (15:05 +0200)]
patch 8.2.3307: Vim9: :echoconsole cannot access local variables

Problem:    Vim9: :echoconsole cannot access local variables.
Solution:   Handle like other :echo commands. (closes #8708)

3 years agopatch 8.2.3306: unexpected "No matching autocommands" v8.2.3306
Bram Moolenaar [Sat, 7 Aug 2021 11:59:43 +0000 (13:59 +0200)]
patch 8.2.3306: unexpected "No matching autocommands"

Problem:    Unexpected "No matching autocommands".
Solution:   Do not give the message when aborting.  Mention the arguments in
            the message. (closes #8690)

3 years agopatch 8.2.3305: Vim9: :finally in skipped block not handled correctly v8.2.3305
rbtnn [Sat, 7 Aug 2021 11:26:53 +0000 (13:26 +0200)]
patch 8.2.3305: Vim9: :finally in skipped block not handled correctly

Problem:    Vim9: :finally in skipped block not handled correctly.
Solution:   Check whether :finally is in a skipped block. (Naruhiko Nishino,
            closes #8724)

3 years agopatch 8.2.3304: popup window title with wide characters is truncated v8.2.3304
rbtnn [Sat, 7 Aug 2021 11:08:45 +0000 (13:08 +0200)]
patch 8.2.3304: popup window title with wide characters is truncated

Problem:    Popup window title with wide characters is truncated.
Solution:   Use vim_strsize() instead of MB_CHARLEN(). (Naruhiko Nishino,
            closes #8721)

3 years agopatch 8.2.3303: some structures could be smaller v8.2.3303
Dominique Pelle [Sat, 7 Aug 2021 10:44:41 +0000 (12:44 +0200)]
patch 8.2.3303: some structures could be smaller

Problem:    Some structures could be smaller.
Solution:   Rearrange members to reduce size. (Dominique Pellé, closes #8725)

3 years agopatch 8.2.3302: Coverity is not run from github v8.2.3302
Bram Moolenaar [Sat, 7 Aug 2021 10:32:20 +0000 (12:32 +0200)]
patch 8.2.3302: Coverity is not run from github

Problem:    Coverity is not run from github.
Solution:   Add a coverity script. (James McCoy, closes #8714)

3 years agopatch 8.2.3301: memory allocation functions don't have their own place v8.2.3301
Yegappan Lakshmanan [Fri, 6 Aug 2021 19:51:55 +0000 (21:51 +0200)]
patch 8.2.3301: memory allocation functions don't have their own place

Problem:    Memory allocation functions don't have their own place.
Solution:   Move memory allocation functions to alloc.c.  (Yegappan
            Lakshmanan, closes #8717)

3 years agopatch 8.2.3300: Lua: can only execute on Vim command at a time v8.2.3300
Yegappan Lakshmanan [Fri, 6 Aug 2021 19:34:38 +0000 (21:34 +0200)]
patch 8.2.3300: Lua: can only execute on Vim command at a time

Problem:    Lua: can only execute on Vim command at a time.  Not easy to get
            the Vim version.
Solution:   Make vim.command() accept multiple lines.  Add vim.version().
            (Yegappan Lakshmanan, closes #8716)

3 years agopatch 8.2.3299: Vim9: exists() does not handle much at compile time v8.2.3299
Bram Moolenaar [Thu, 5 Aug 2021 20:48:11 +0000 (22:48 +0200)]
patch 8.2.3299: Vim9: exists() does not handle much at compile time

Problem:    Vim9: exists() does not handle much at compile time.
Solution:   Handle variable names. (closes #8688)

3 years agopatch 8.2.3298: build failure with small features v8.2.3298
Bram Moolenaar [Thu, 5 Aug 2021 19:17:32 +0000 (21:17 +0200)]
patch 8.2.3298: build failure with small features

Problem:    Build failure with small features.
Solution:   Add #ifdef.

3 years agopatch 8.2.3297: cannot use all commands inside a {} block v8.2.3297
Bram Moolenaar [Thu, 5 Aug 2021 18:40:03 +0000 (20:40 +0200)]
patch 8.2.3297: cannot use all commands inside a {} block

Problem:    Cannot use all commands inside a {} block after :command and
            :autocmd.
Solution:   Do consider \n to separate commands. (closes #8620)

3 years agopatch 8.2.3296: Vim9: cannot add a number to a float v8.2.3296
Bram Moolenaar [Thu, 5 Aug 2021 17:01:17 +0000 (19:01 +0200)]
patch 8.2.3296: Vim9: cannot add a number to a float

Problem:    Vim9: cannot add a number to a float.
Solution:   Accept a number if the destination is a float. (closes #8703)

3 years agopatch 8.2.3295: 'cursorline' should not apply to 'breakindent' v8.2.3295
zeertzjq [Thu, 5 Aug 2021 15:57:02 +0000 (17:57 +0200)]
patch 8.2.3295: 'cursorline' should not apply to 'breakindent'

Problem:    'cursorline' should not apply to 'breakindent'.
Solution:   Make 'cursorline' apply to 'breakindent' and 'showbreak'
            consistently. (closes #8684)

3 years agopatch 8.2.3294: Lua: memory leak when adding dict item fails v8.2.3294
Bram Moolenaar [Thu, 5 Aug 2021 14:47:08 +0000 (16:47 +0200)]
patch 8.2.3294: Lua: memory leak when adding dict item fails

Problem:    Lua: memory leak when adding dict item fails.
Solution:   Free the typval and the dict item.

3 years agopatch 8.2.3293: finding completions may cause an endless loop v8.2.3293
Andy Gozas [Thu, 5 Aug 2021 14:23:27 +0000 (16:23 +0200)]
patch 8.2.3293: finding completions may cause an endless loop

Problem:    Finding completions may cause an endless loop.
Solution:   Use a better way to check coming back where the search started.
            (Andy Gozas, closes #8672, closes #8671)

3 years agopatch 8.2.3292: underscore in very magic pattern causes a hang v8.2.3292
Christian Brabandt [Thu, 5 Aug 2021 13:24:59 +0000 (15:24 +0200)]
patch 8.2.3292: underscore in very magic pattern causes a hang

Problem:    Underscore in very magic pattern causes a hang.  Pattern with \V
            are case sensitive. (Yutao Yuan)
Solution:   Adjust condition for magicness and advance pointer. (Christian
            Brabandt, closes #8707, closes #8704, closes #8705)

3 years agopatch 8.2.3291: Coverity warns for not checking return value v8.2.3291
Bram Moolenaar [Thu, 5 Aug 2021 13:11:08 +0000 (15:11 +0200)]
patch 8.2.3291: Coverity warns for not checking return value

Problem:    Coverity warns for not checking return value.
Solution:   If dict_add() fails give an error message.

3 years agopatch 8.2.3290: Vim9: compiling dict may use pointer after free v8.2.3290
Zdenek Dohnal [Wed, 4 Aug 2021 20:30:52 +0000 (22:30 +0200)]
patch 8.2.3290: Vim9: compiling dict may use pointer after free

Problem:    Vim9: compiling dict may use pointer after free and leak memory on
            failure.
Solution:   Pass a pointer to generate_PUSHS().  (Zdenek Dohnal, closes #8699)

3 years agopatch 8.2.3289: compiler warning for unused variable with small features v8.2.3289
Bram Moolenaar [Wed, 4 Aug 2021 19:16:50 +0000 (21:16 +0200)]
patch 8.2.3289: compiler warning for unused variable with small features

Problem:    Compiler warning for unused variable with small features.
Solution:   Rearrange #ifdefs.

3 years agopatch 8.2.3288: cannot easily access namespace dictionaries from Lua v8.2.3288
Yegappan Lakshmanan [Wed, 4 Aug 2021 19:12:52 +0000 (21:12 +0200)]
patch 8.2.3288: cannot easily access namespace dictionaries from Lua

Problem:    Cannot easily access namespace dictionaries from Lua.
Solution:   Add vim.g, vim.b, etc. (Yegappan Lakshmanan, closes #8693,
            from NeoVim)

3 years agopatch 8.2.3287: channel events not handled in BufEnter autocommand v8.2.3287
Bram Moolenaar [Wed, 4 Aug 2021 18:54:55 +0000 (20:54 +0200)]
patch 8.2.3287: channel events not handled in BufEnter autocommand

Problem:    Channel events not handled in BufEnter autocommand.
Solution:   Decrement dont_parse_messages earlier. (Tim Pope, closes #8697)

3 years agopatch 8.2.3286: win_enter_ext() has too many boolean arguments v8.2.3286
Bram Moolenaar [Wed, 4 Aug 2021 18:26:19 +0000 (20:26 +0200)]
patch 8.2.3286: win_enter_ext() has too many boolean arguments

Problem:    win_enter_ext() has too many boolean arguments.
Solution:   use one flags argument with defined values.

3 years agopatch 8.2.3285: scdoc filetype is not recognized v8.2.3285
Gregory Anders [Wed, 4 Aug 2021 18:00:27 +0000 (20:00 +0200)]
patch 8.2.3285: scdoc filetype is not recognized

Problem:    Scdoc filetype is not recognized.
Solution:   Add filetype detection. (Gregory Anders, closes #8701)

3 years agopatch 8.2.3284: no error for insert() or remove() changing a locked blob v8.2.3284
Sean Dewar [Wed, 4 Aug 2021 17:25:54 +0000 (19:25 +0200)]
patch 8.2.3284: no error for insert() or remove() changing a locked blob

Problem:    No error for insert() or remove() changing a locked blob.
Solution:   Check a blob is not locked before changing it. (Sean Dewar,
            closes #8696)

3 years agopatch 8.2.3283: Julia filetype is not recognized v8.2.3283
Christian Clason [Wed, 4 Aug 2021 15:03:59 +0000 (17:03 +0200)]
patch 8.2.3283: Julia filetype is not recognized

Problem:    Julia filetype is not recognized
Solution:   Add filetype detection. (Christian Clason, closes #8700)

3 years agopatch 8.2.3282: Vim9: error about using -complete without -nargs is confusing v8.2.3282
Bram Moolenaar [Wed, 4 Aug 2021 14:09:24 +0000 (16:09 +0200)]
patch 8.2.3282: Vim9: error about using -complete without -nargs is confusing

Problem:    Vim9: error about using -complete without -nargs is confusing.
Solution:   Change the wording.

3 years agopatch 8.2.3281: Vim9: TODO items in tests can be taken care of v8.2.3281
Bram Moolenaar [Tue, 3 Aug 2021 19:16:18 +0000 (21:16 +0200)]
patch 8.2.3281: Vim9: TODO items in tests can be taken care of

Problem:    Vim9: TODO items in tests can be taken care of.
Solution:   Update test for now working functionality. (closes #8694)

3 years agopatch 8.2.3280: 'virtualedit' local to buffer is not the best solution v8.2.3280
Gary Johnson [Tue, 3 Aug 2021 16:33:08 +0000 (18:33 +0200)]
patch 8.2.3280: 'virtualedit' local to buffer is not the best solution

Problem:    'virtualedit' local to buffer is not the best solution.
Solution:   Make it window-local. (Gary Johnson, closes #8685)

3 years agopatch 8.2.3279: Vim9: cannot use block in cmdline window v8.2.3279
Bram Moolenaar [Mon, 2 Aug 2021 20:26:56 +0000 (22:26 +0200)]
patch 8.2.3279: Vim9: cannot use block in cmdline window

Problem:    Vim9: cannot use block in cmdline window.
Solution:   Add EX_CMDWIN to the CMD_block flags. (closes #8689)

3 years agopatch 8.2.3278: Vim9: error when adding 1 to float v8.2.3278
Bram Moolenaar [Mon, 2 Aug 2021 19:55:15 +0000 (21:55 +0200)]
patch 8.2.3278: Vim9: error when adding 1 to float

Problem:    Vim9: error when adding 1 to float.
Solution:   Accept t_number_bool. (closes #8687)

3 years agopatch 8.2.3277: Vim9: compiled has() does not work properly v8.2.3277
Bram Moolenaar [Mon, 2 Aug 2021 19:12:05 +0000 (21:12 +0200)]
patch 8.2.3277: Vim9: compiled has() does not work properly

Problem:    Vim9: compiled has() does not work properly.
Solution:   Fix check for has() vs exists().

3 years agopatch 8.2.3276: Vim9: exists() can only be evaluated at runtime v8.2.3276
Bram Moolenaar [Mon, 2 Aug 2021 18:06:50 +0000 (20:06 +0200)]
patch 8.2.3276: Vim9: exists() can only be evaluated at runtime

Problem:    Vim9: exists() can only be evaluated at runtime.
Solution:   Evaluate at compile time for option name literals. (closes #8437)

3 years agopatch 8.2.3275: optimizer can use hints about ga_grow() normally succeeding v8.2.3275
Bram Moolenaar [Mon, 2 Aug 2021 17:10:38 +0000 (19:10 +0200)]
patch 8.2.3275: optimizer can use hints about ga_grow() normally succeeding

Problem:    Optimizer can use hints about ga_grow() normally succeeding.
Solution:   Use GA_GROW_FAILS() and GA_GROW_OK() in several places. (Dominique
            Pellé, issue #8635)

3 years agopatch 8.2.3274: macro for printf format check can be simplified v8.2.3274
Bram Moolenaar [Mon, 2 Aug 2021 16:07:18 +0000 (18:07 +0200)]
patch 8.2.3274: macro for printf format check can be simplified

Problem:    Macro for printf format check can be simplified.
Solution:   Add ATTRIBUTE_FORMAT_PRINTF(). (Dominique Pellé, issue #8635)

3 years agopatch 8.2.3273: autocmd test fails v8.2.3273
Bram Moolenaar [Sun, 1 Aug 2021 20:01:30 +0000 (22:01 +0200)]
patch 8.2.3273: autocmd test fails

Problem:    Autocmd test fails.
Solution:   Require white space before the "{" that starts a block.

3 years agopatch 8.2.3272: cannot use id zero with prop_find() v8.2.3272
Bram Moolenaar [Sun, 1 Aug 2021 19:30:12 +0000 (21:30 +0200)]
patch 8.2.3272: cannot use id zero with prop_find()

Problem:    Cannot use id zero with prop_find(). (Naohiro Ono)
Solution:   Also accept id zero.

3 years agopatch 8.2.3271: Vim9: cannot use :command or :au with block in :def function v8.2.3271
Bram Moolenaar [Sun, 1 Aug 2021 19:19:43 +0000 (21:19 +0200)]
patch 8.2.3271: Vim9: cannot use :command or :au with block in :def function

Problem:    Vim9: cannot use :command or :au with a block in a :def function.
Solution:   Recognize the start of the block.

3 years agopatch 8.2.3270: prop_find() finds property with ID -2 v8.2.3270
Bram Moolenaar [Sun, 1 Aug 2021 17:28:15 +0000 (19:28 +0200)]
patch 8.2.3270: prop_find() finds property with ID -2

Problem:    prop_find() finds property with ID -2.
Solution:   Use a separate flag to indicate an ID was specified. (issue #8674)

3 years agopatch 8.2.3269: Vim9: wrong argument check for partial v8.2.3269
Bram Moolenaar [Sun, 1 Aug 2021 13:40:31 +0000 (15:40 +0200)]
patch 8.2.3269: Vim9: wrong argument check for partial

Problem:    Vim9: wrong argument check for partial. (Naohiro Ono)
Solution:   Handle getting return type without arguments. Correct the minimal
            number of arguments for what is included in the partial.
            (closes #8667)

3 years agopatch 8.2.3268: cannot use a block with :autocmd like with :command v8.2.3268
Bram Moolenaar [Sun, 1 Aug 2021 12:52:32 +0000 (14:52 +0200)]
patch 8.2.3268: cannot use a block with :autocmd like with :command

Problem:    Cannot use a block with :autocmd like with :command.
Solution:   Add support for a {} block after :autocmd. (closes #8620)