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

3 years agopatch 8.2.3267: Vim9: crash when disassembling using deleted script variable v8.2.3267
Bram Moolenaar [Sun, 1 Aug 2021 12:08:54 +0000 (14:08 +0200)]
patch 8.2.3267: Vim9: crash when disassembling using deleted script variable

Problem:    Vim9: crash when disassembling a function that uses a deleted
            script variable.
Solution:   Check the variable still exists. (closes #8683)

3 years agopatch 8.2.3266: Vim9: assignment with two indexes may check next line v8.2.3266
Bram Moolenaar [Sun, 1 Aug 2021 11:17:17 +0000 (13:17 +0200)]
patch 8.2.3266: Vim9: assignment with two indexes may check next line

Problem:    Vim9: assignment with two indexes may check next line.
Solution:   Limit the number of lines to avoid checking the next line when
            assiging to a LHS subscript. (closes #8660)

3 years agopatch 8.2.3265: smartcase does not work correctly in very magic pattern v8.2.3265
Christian Brabandt [Sun, 1 Aug 2021 10:44:37 +0000 (12:44 +0200)]
patch 8.2.3265: smartcase does not work correctly in very magic pattern

Problem:    Smartcase does not work correctly in very magic pattern.
Solution:   Take the magicness into account when skipping over regexp items.
            (Christian Brabandt, closes #8682, closes #7845)

3 years agopatch 8.2.3264: Vim9: assign test fails v8.2.3264
Bram Moolenaar [Sun, 1 Aug 2021 10:01:49 +0000 (12:01 +0200)]
patch 8.2.3264: Vim9: assign test fails

Problem:    Vim9: assign test fails.
Solution:   Add missing change.

3 years agopatch 8.2.3263: Vim9: "..=" does not accept same types as the ".." operator v8.2.3263
Bram Moolenaar [Sat, 31 Jul 2021 20:51:10 +0000 (22:51 +0200)]
patch 8.2.3263: Vim9: "..=" does not accept same types as the ".." operator

Problem:    Vim9: "..=" does not accept same types as the ".." operator.
Solution:   Convert value to string like ".." does. (issue #8664)

3 years agopatch 8.2.3262: build failure when ABORT_ON_INTERNAL_ERROR is defined v8.2.3262
Bram Moolenaar [Sat, 31 Jul 2021 20:17:28 +0000 (22:17 +0200)]
patch 8.2.3262: build failure when ABORT_ON_INTERNAL_ERROR is defined

Problem:    Build failure when ABORT_ON_INTERNAL_ERROR is defined.
Solution:   Adjust how estack_len_before is used.

3 years agopatch 8.2.3261: Vim9: when compiling repeat(123, N) return type is number v8.2.3261
Bram Moolenaar [Sat, 31 Jul 2021 20:03:59 +0000 (22:03 +0200)]
patch 8.2.3261: Vim9: when compiling repeat(123, N) return type is number

Problem:    Vim9: when compiling repeat(123, N) return type is number.
Solution:   Make return type a string. (closes #8664)

3 years agopatch 8.2.3260: build failure with small features v8.2.3260
Bram Moolenaar [Sat, 31 Jul 2021 19:44:35 +0000 (21:44 +0200)]
patch 8.2.3260: build failure with small features

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

3 years agopatch 8.2.3259: when 'indentexpr' causes an error did_throw may hang v8.2.3259
Bram Moolenaar [Sat, 31 Jul 2021 19:32:31 +0000 (21:32 +0200)]
patch 8.2.3259: when 'indentexpr' causes an error did_throw may hang

Problem:    When 'indentexpr' causes an error the did_throw flag may remain
            set.
Solution:   Reset did_throw and show the error. (closes #8677)

3 years agopatch 8.2.3258: error messages have the wrong text v8.2.3258
Bram Moolenaar [Sat, 31 Jul 2021 17:12:58 +0000 (19:12 +0200)]
patch 8.2.3258: error messages have the wrong text

Problem:    Error messages have the wrong text.
Solution:   Adjust the error message.

3 years agopatch 8.2.3257: calling prop_find() with -1 for ID gives errornous error v8.2.3257
Bram Moolenaar [Sat, 31 Jul 2021 16:33:57 +0000 (18:33 +0200)]
patch 8.2.3257: calling prop_find() with -1 for ID gives errornous error

Problem:    Calling prop_find() with -1 for ID gives errornous error. (Naohiro
            Ono)
Solution:   When passing -1 use -2. (closes #8674)

3 years agopatch 8.2.3256: executable test may fail on new Ubuntu system v8.2.3256
Bram Moolenaar [Sat, 31 Jul 2021 15:20:04 +0000 (17:20 +0200)]
patch 8.2.3256: executable test may fail on new Ubuntu system

Problem:    Executable test may fail on new Ubuntu system.
Solution:   Consider /usr/bin/cat and /bin/cat the same.

3 years agopatch 8.2.3255: ci" finds following string but ci< and others don't v8.2.3255
Connor Lane Smith [Sat, 31 Jul 2021 11:31:42 +0000 (13:31 +0200)]
patch 8.2.3255: ci" finds following string but ci< and others don't

Problem:    ci" finds following string but ci< and others don't.
Solution:   When not inside an object find the start. (Connor Lane Smit,
            closes #8670)

3 years agopatch 8.2.3254: win_gettype() does not recognize a quickfix window v8.2.3254
Yegappan Lakshmanan [Sat, 31 Jul 2021 10:43:23 +0000 (12:43 +0200)]
patch 8.2.3254: win_gettype() does not recognize a quickfix window

Problem:    win_gettype() does not recognize a quickfix window.
Solution:   Add "quickfix" and "loclist". (Yegappan Lakshmanan, closes #8676)

3 years agopatch 8.2.3253: channel test fails randomly v8.2.3253
Bram Moolenaar [Fri, 30 Jul 2021 19:56:10 +0000 (21:56 +0200)]
patch 8.2.3253: channel test fails randomly

Problem:    Channel test fails randomly.
Solution:   Add a sleep after sending the "echoerr" command. (Michael Soyka)

3 years agopatch 8.2.3252: duplicated code for adding buffer lines v8.2.3252
Yegappan Lakshmanan [Fri, 30 Jul 2021 19:32:45 +0000 (21:32 +0200)]
patch 8.2.3252: duplicated code for adding buffer lines

Problem:    Duplicated code for adding buffer lines.
Solution:   Move code to a common function.  Also move map functions to map.c.
            (Yegappan Lakshmanan, closes #8665)

3 years agopatch 8.2.3251: listing builtin_gui as an available terminal is confusing v8.2.3251
Bram Moolenaar [Fri, 30 Jul 2021 19:18:03 +0000 (21:18 +0200)]
patch 8.2.3251: listing builtin_gui as an available terminal is confusing

Problem:    Listing builtin_gui as an available terminal is confusing.
Solution:   Do not list builtin_gui. (Christian Brabandt, closes #8669,
            closes #8661)

3 years agopatch 8.2.3250: MS-Windows: cannot build with libsodium v8.2.3250
Christian Brabandt [Fri, 30 Jul 2021 18:51:59 +0000 (20:51 +0200)]
patch 8.2.3250: MS-Windows: cannot build with libsodium

Problem:    MS-Windows: cannot build with libsodium.
Solution:   Change FEAT_SODIUM into HAVE_SODIUM. (Christian Brabandt,
            closes #8668, closes #8663)

3 years agopatch 8.2.3249: Vim9: error for re-imported function with default argument v8.2.3249
Bram Moolenaar [Thu, 29 Jul 2021 20:48:54 +0000 (22:48 +0200)]
patch 8.2.3249: Vim9: error for re-imported function with default argument

Problem:    Vim9: error for re-imported function with default argument.
Solution:   Do not check argument type if it is still unknown. (closes #8653)

3 years agopatch 8.2.3248: Vim9: error message for wrong input uses wrong line number v8.2.3248
Bram Moolenaar [Thu, 29 Jul 2021 20:25:05 +0000 (22:25 +0200)]
patch 8.2.3248: Vim9: error message for wrong input uses wrong line number

Problem:    Vim9: error message for wrong input uses wrong line number.
Solution:   Use the line number of the start of the command. (issue #8653)

3 years agopatch 8.2.3247: using uninitialized memory when checking for crypt method v8.2.3247
Bram Moolenaar [Thu, 29 Jul 2021 19:23:50 +0000 (21:23 +0200)]
patch 8.2.3247: using uninitialized memory when checking for crypt method

Problem:    Using uninitialized memory when checking for crypt method.
Solution:   Check the header length before using the salt and seed.

3 years agopatch 8.2.3246: memory use after free v8.2.3246
Bram Moolenaar [Thu, 29 Jul 2021 19:11:30 +0000 (21:11 +0200)]
patch 8.2.3246: memory use after free

Problem:    Memory use after free.
Solution:   When clearing a string option set the pointer to "empty_option".

3 years agopatch 8.2.3245: the crypt key may appear in a swap partition v8.2.3245
Bram Moolenaar [Thu, 29 Jul 2021 18:37:49 +0000 (20:37 +0200)]
patch 8.2.3245: the crypt key may appear in a swap partition

Problem:    The crypt key may appear in a swap partition.
Solution:   When using xchaha20 use sodium_mlock(). (Christian Brabandt,
            closes #8657)

3 years agopatch 8.2.3244: Lua 5.3 print() with a long string crashes v8.2.3244
Yegappan Lakshmanan [Thu, 29 Jul 2021 18:22:14 +0000 (20:22 +0200)]
patch 8.2.3244: Lua 5.3 print() with a long string crashes

Problem:    Lua 5.3 print() with a long string crashes.
Solution:   Use a growarray instead of a Lua buffer. (Yegappan Lakshmanan,
            closes #8655)

3 years agopatch 8.2.3243: MS-Windows: "edit with multiple Vim" choice is less useful v8.2.3243
msoyka-of-wharton [Thu, 29 Jul 2021 17:18:33 +0000 (19:18 +0200)]
patch 8.2.3243: MS-Windows: "edit with multiple Vim" choice is less useful

Problem:    MS-Windows: the "edit with multiple Vim" choice is not that
            useful.
Solution:   Change it to "Edit with multiple tabs". (Michael Soyka,
            closes #8645)

3 years agopatch 8.2.3242: Vim9: valgrind reports leaks in builtin function test v8.2.3242
Bram Moolenaar [Wed, 28 Jul 2021 20:44:08 +0000 (22:44 +0200)]
patch 8.2.3242: Vim9: valgrind reports leaks in builtin function test

Problem:    Vim9: valgrind reports leaks in builtin function test.
Solution:   Do not start a job.

3 years agopatch 8.2.3241: Vim9: memory leak when function reports an error v8.2.3241
Bram Moolenaar [Wed, 28 Jul 2021 20:21:23 +0000 (22:21 +0200)]
patch 8.2.3241: Vim9: memory leak when function reports an error

Problem:    Vim9: memory leak when function reports an error.
Solution:   Clear the return value.

3 years agopatch 8.2.3240: Lua print() does not work properly v8.2.3240
Bram Moolenaar [Wed, 28 Jul 2021 19:48:59 +0000 (21:48 +0200)]
patch 8.2.3240: Lua print() does not work properly

Problem:    Lua print() does not work properly.
Solution:   Put back lua_pop().

3 years agopatch 8.2.3239: Vim9: no error using heredoc for a number variable v8.2.3239
Bram Moolenaar [Wed, 28 Jul 2021 19:25:49 +0000 (21:25 +0200)]
patch 8.2.3239: Vim9: no error using heredoc for a number variable

Problem:    Vim9: no error using heredoc for a number variable.
Solution:   Add a type check. (closes #8627)

3 years agopatch 8.2.3238: Vim9: error message does not indicate the location v8.2.3238
Bram Moolenaar [Wed, 28 Jul 2021 18:52:13 +0000 (20:52 +0200)]
patch 8.2.3238: Vim9: error message does not indicate the location

Problem:    Vim9: error message does not indicate the location.
Solution:   Add the relevant text. (issue #8634)

3 years agoUpdate runtime files
Bram Moolenaar [Wed, 28 Jul 2021 18:10:16 +0000 (20:10 +0200)]
Update runtime files

3 years agopatch 8.2.3237: when a builtin function gives an error processing continues v8.2.3237
Bram Moolenaar [Wed, 28 Jul 2021 17:34:14 +0000 (19:34 +0200)]
patch 8.2.3237: when a builtin function gives an error processing continues

Problem:    When a builtin function gives an error processing continues.
Solution:   In Vim9 script return FAIL in get_func_tv().

3 years agopatch 8.2.3236: mode() does not indicate using CTRL-O in Select mode v8.2.3236
zeertzjq [Wed, 28 Jul 2021 14:51:53 +0000 (16:51 +0200)]
patch 8.2.3236: mode() does not indicate using CTRL-O in Select mode

Problem:    mode() does not indicate using CTRL-O in Select mode.
Solution:   Use "vs" and similar. (closes #8640)

3 years agopatch 8.2.3235: cannot use lambda in {} block in user command v8.2.3235
Bram Moolenaar [Wed, 28 Jul 2021 13:54:54 +0000 (15:54 +0200)]
patch 8.2.3235: cannot use lambda in {} block in user command

Problem:    Cannot use lambda in {} block in user command. (Martin Tournoij)
Solution:   Do not go over the end of the lambda.

3 years agopatch 8.2.3234: crash when printing long string with Lua v8.2.3234
Bram Moolenaar [Wed, 28 Jul 2021 13:07:01 +0000 (15:07 +0200)]
patch 8.2.3234: crash when printing long string with Lua

Problem:    Crash when printing long string with Lua.
Solution:   Remove lua_pop(). (Martin Tournoij, closes #8648)

3 years agopatch 8.2.3233: prop_list() and prop_find() do not indicate the buffer v8.2.3233
Martin Tournoij [Wed, 28 Jul 2021 11:30:16 +0000 (13:30 +0200)]
patch 8.2.3233: prop_list() and prop_find() do not indicate the buffer

Problem:    prop_list() and prop_find() do not indicate the buffer for the
            used type.
Solution:   Add "type_bufnr" to the results. (closes #8647)

3 years agopatch 8.2.3232: system() does not work without a second argument v8.2.3232
Yegappan Lakshmanan [Wed, 28 Jul 2021 09:51:48 +0000 (11:51 +0200)]
patch 8.2.3232: system() does not work without a second argument

Problem:    system() does not work without a second argument.
Solution:   Do not require a second argument. (Yegappan Lakshmanan,
            closes #8651, closes #8650)

3 years agopatch 8.2.3231: build failure with small features v8.2.3231
Bram Moolenaar [Tue, 27 Jul 2021 20:35:42 +0000 (22:35 +0200)]
patch 8.2.3231: build failure with small features

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

3 years agopatch 8.2.3230: Vim9: type error when function return type is not known yet v8.2.3230
Bram Moolenaar [Tue, 27 Jul 2021 20:21:44 +0000 (22:21 +0200)]
patch 8.2.3230: Vim9: type error when function return type is not known yet

Problem:    Vim9: type error when function return type is not known yet.
Solution:   When return type is unknown, use "any". (closes #8644)

3 years agopatch 8.2.3229: Vim9: runtime and compile time type checks are not the same v8.2.3229
Yegappan Lakshmanan [Tue, 27 Jul 2021 20:00:44 +0000 (22:00 +0200)]
patch 8.2.3229: Vim9: runtime and compile time type checks are not the same

Problem:    Vim9: runtime and compile time type checks are not the same.
Solution:   Add more runtime type checks for builtin functions. (Yegappan
            Lakshmanan, closes #8646)

3 years agopatch 8.2.3228: cannot use a simple block for the :command argument v8.2.3228
Bram Moolenaar [Tue, 27 Jul 2021 19:17:32 +0000 (21:17 +0200)]
patch 8.2.3228: cannot use a simple block for the :command argument

Problem:    Cannot use a simple block for the :command argument. (Maarten
            Tournoij)
Solution:   Recognize a simple {} block. (issue #8623)

3 years agopatch 8.2.3227: 'virtualedit' can only be set globally v8.2.3227
Gary Johnson [Mon, 26 Jul 2021 20:19:10 +0000 (22:19 +0200)]
patch 8.2.3227: 'virtualedit' can only be set globally

Problem:    'virtualedit' can only be set globally.
Solution:   Make 'virtualedit' global-local. (Gary Johnson, closes #8638)

3 years agopatch 8.2.3226: new digraph functions use old naming scheme v8.2.3226
h-east [Mon, 26 Jul 2021 19:54:04 +0000 (21:54 +0200)]
patch 8.2.3226: new digraph functions use old naming scheme

Problem:    New digraph functions use old naming scheme.
Solution:   Use the digraph_ prefix. (Hirohito Higashi, closes #8580)

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)