]> granicus.if.org Git - vim/log
vim
4 years agopatch 8.2.2456: Coverity warning for strcpy() into fixed size array v8.2.2456
Bram Moolenaar [Wed, 3 Feb 2021 18:31:29 +0000 (19:31 +0100)]
patch 8.2.2456: Coverity warning for strcpy() into fixed size array

Problem:    Coverity warning for strcpy() into fixed size array.
Solution:   Add a type cast to hopefully silence the bogus warning.

4 years agopatch 8.2.2455: Vim9: key type for literal dict and indexing is inconsistent v8.2.2455
Bram Moolenaar [Wed, 3 Feb 2021 16:41:24 +0000 (17:41 +0100)]
patch 8.2.2455: Vim9: key type for literal dict and indexing is inconsistent

Problem:    Vim9: key type that can be used for literal dict and indexing is
            inconsistent.
Solution:   Allow using number and bool as key for a literal dict. (#7771)

4 years agopatch 8.2.2454: leading space can not be made visible v8.2.2454
Bram Moolenaar [Wed, 3 Feb 2021 14:58:13 +0000 (15:58 +0100)]
patch 8.2.2454: leading space can not be made visible

Problem:    Leading space can not be made visible.
Solution:   Add "lead:" to 'listchars'. (closes #7772)

4 years agopatch 8.2.2453: Vim9: a variable name with "->" in the next line doesn't work v8.2.2453
Bram Moolenaar [Tue, 2 Feb 2021 20:33:52 +0000 (21:33 +0100)]
patch 8.2.2453: Vim9: a variable name with "->" in the next line doesn't work

Problem:    Vim9: a variable name with "->" in the next line doesn't work.
Solution:   Recognize a variable name by itself. (closes #7770)

4 years agopatch 8.2.2452: no completion for the 'filetype' option v8.2.2452
Bram Moolenaar [Tue, 2 Feb 2021 20:10:01 +0000 (21:10 +0100)]
patch 8.2.2452: no completion for the 'filetype' option

Problem:    No completion for the 'filetype' option.
Solution:   Add filetype completion. (Martin Tournoij, closes #7747)

4 years agopatch 8.2.2451: MS-Windows: Extended Attributes not preserved v8.2.2451
Bram Moolenaar [Mon, 1 Feb 2021 19:50:37 +0000 (20:50 +0100)]
patch 8.2.2451: MS-Windows: Extended Attributes not preserved

Problem:    MS-Windows: Extended Attributes not preserved.
Solution:   Preserve Extended Attributes when writing a file. (Ken Takata,
            closes #7765)

4 years agopatch 8.2.2450: MS-Windows: ADS was not preserved if 'backupcopy' is "yes" v8.2.2450
Bram Moolenaar [Mon, 1 Feb 2021 19:35:01 +0000 (20:35 +0100)]
patch 8.2.2450: MS-Windows: ADS was not preserved if 'backupcopy' is "yes"

Problem:    MS-Windows: ADS was not preserved if 'backupcopy' is "yes".
Solution:   Copy ADS before truncating the file. (Ken Takata, closes #7762)

4 years agopatch 8.2.2449: Vim9: flatten() always changes the list type v8.2.2449
Bram Moolenaar [Mon, 1 Feb 2021 19:14:51 +0000 (20:14 +0100)]
patch 8.2.2449: Vim9: flatten() always changes the list type

Problem:    Vim9: flatten() always changes the list type.
Solution:   Disallow using flatten() and add flattennew().

4 years agopatch 8.2.2448: compilation error with Ruby 3.0 v8.2.2448
Bram Moolenaar [Mon, 1 Feb 2021 18:31:47 +0000 (19:31 +0100)]
patch 8.2.2448: compilation error with Ruby 3.0

Problem:    Compilation error with Ruby 3.0.
Solution:   Adjust #ifdefs and declaration. (Ken Takata, closes #7761)

4 years agopatch 8.2.2447: 'foldlevel' not applied to folds restored from session v8.2.2447
Bram Moolenaar [Mon, 1 Feb 2021 18:24:55 +0000 (19:24 +0100)]
patch 8.2.2447: 'foldlevel' not applied to folds restored from session

Problem:    'foldlevel' not applied to folds restored from session.
Solution:   Set 'foldlevel' after creaiting the folds. (closes #7767)

4 years agopatch 8.2.2446: setting 'term' empty has different error if compiled with GUI v8.2.2446
Bram Moolenaar [Mon, 1 Feb 2021 17:39:47 +0000 (18:39 +0100)]
patch 8.2.2446: setting 'term' empty has different error if compiled with GUI

Problem:    Setting 'term' empty has different error if compiled with GUI.
Solution:   Insert "else". (closes #7766)

4 years agopatch 8.2.2445: Vim9: no proper error for lambda missing return type v8.2.2445
Bram Moolenaar [Sun, 31 Jan 2021 21:18:29 +0000 (22:18 +0100)]
patch 8.2.2445: Vim9: no proper error for lambda missing return type

Problem:    Vim9: no proper error for lambda missing return type.
Solution:   Check for this error. (closes #7758)

4 years agopatch 8.2.2444: Vim9: compile error with combination of operator and list v8.2.2444
Bram Moolenaar [Sun, 31 Jan 2021 20:47:42 +0000 (21:47 +0100)]
patch 8.2.2444: Vim9: compile error with combination of operator and list

Problem:    Vim9: compile error with combination of operator and list.
Solution:   Generate constants before parsing a list or dict. (closes #7757)

4 years agopatch 8.2.2443: Vim9: no compile time error for wrong str2float argument v8.2.2443
Bram Moolenaar [Sun, 31 Jan 2021 19:48:58 +0000 (20:48 +0100)]
patch 8.2.2443: Vim9: no compile time error for wrong str2float argument

Problem:    Vim9: no compile time error for wrong str2float argument.
Solution:   Check argument type. (closes #7759)

4 years agopatch 8.2.2442: automatic GUI selection does not check for GTK 3 v8.2.2442
Bram Moolenaar [Sun, 31 Jan 2021 18:52:50 +0000 (19:52 +0100)]
patch 8.2.2442: automatic GUI selection does not check for GTK 3

Problem:    Automatic GUI selection does not check for GTK 3.
Solution:   Make SKIP_GTK3 empty for automatic GUI support.  Set SKIP_GTK3 to
            YES when checking for GTK2.

4 years agopatch 8.2.2441: Vim9: extend() does not give an error for a type mismatch v8.2.2441
Bram Moolenaar [Sun, 31 Jan 2021 16:48:30 +0000 (17:48 +0100)]
patch 8.2.2441: Vim9: extend() does not give an error for a type mismatch

Problem:    Vim9: extend() does not give an error for a type mismatch.
Solution:   Check the type of the second argument. (closes #7760)

4 years agopatch 8.2.2440: documentation based on patches is outdated v8.2.2440
Bram Moolenaar [Sun, 31 Jan 2021 16:03:52 +0000 (17:03 +0100)]
patch 8.2.2440: documentation based on patches is outdated

Problem:    Documentation based on patches is outdated.
Solution:   Add changes to documentation in a patch.

4 years agopatch 8.2.2439: not easy to figure out what packages to get v8.2.2439
Bram Moolenaar [Sun, 31 Jan 2021 15:45:53 +0000 (16:45 +0100)]
patch 8.2.2439: not easy to figure out what packages to get

Problem:    Not easy to figure out what packages to get when installing Vim on
            a new Ubuntu system.
Solution:   Mention explicit commands that are easy to follow.

4 years agopatch 8.2.2438: out of bounds compiler warning v8.2.2438
Bram Moolenaar [Sun, 31 Jan 2021 13:46:00 +0000 (14:46 +0100)]
patch 8.2.2438: out of bounds compiler warning

Problem:    Out of bounds compiler warning.
Solution:   Increase the size of uf_name.

4 years agopatch 8.2.2437: deprecation warnings with default configuration v8.2.2437
Bram Moolenaar [Sun, 31 Jan 2021 13:36:06 +0000 (14:36 +0100)]
patch 8.2.2437: deprecation warnings with default configuration

Problem:    Deprecation warnings with default configuration.
Solution:   Add -Wno-deprecated-declarations.

4 years agopatch 8.2.2436: Vim9 script test is a bit flaky v8.2.2436
Bram Moolenaar [Sun, 31 Jan 2021 13:04:44 +0000 (14:04 +0100)]
patch 8.2.2436: Vim9 script test is a bit flaky

Problem:    Vim9 script test is a bit flaky.
Solution:   Wait longer for exit callback.

4 years agopatch 8.2.2435: setline() gives an error for some types v8.2.2435
Bram Moolenaar [Sun, 31 Jan 2021 12:08:38 +0000 (13:08 +0100)]
patch 8.2.2435: setline() gives an error for some types

Problem:    setline() gives an error for some types.
Solution:   Allow any type, convert each item to a string.

4 years agopatch 8.2.2434: Vim9: no error when compiling str2nr() with a number v8.2.2434
Bram Moolenaar [Sat, 30 Jan 2021 22:05:11 +0000 (23:05 +0100)]
patch 8.2.2434: Vim9: no error when compiling str2nr() with a number

Problem:    Vim9: no error when compiling str2nr() with a number.
Solution:   Add argument type checks. (closes #7759)

4 years agopatch 8.2.2433: opening cmdline window gives error in BufLeave autocommand v8.2.2433
Bram Moolenaar [Sat, 30 Jan 2021 20:40:03 +0000 (21:40 +0100)]
patch 8.2.2433: opening cmdline window gives error in BufLeave autocommand

Problem:    Opening cmdline window gives error in BufLeave autocommand.
Solution:   Reset cmdwin_type when triggering the autocommand.

4 years agopatch 8.2.2432: libvterm tests are executed even when libtool doesn't work v8.2.2432
Bram Moolenaar [Sat, 30 Jan 2021 19:35:28 +0000 (20:35 +0100)]
patch 8.2.2432: libvterm tests are executed even when libtool doesn't work

Problem:    Libvterm tests are executed even when libtool doesn't work.
Solution:   Only run libvterm tests if /usr/bin/gcc exists.

4 years agopatch 8.2.2431: warning for -fno-strength-reduce with Clang 11 v8.2.2431
Bram Moolenaar [Sat, 30 Jan 2021 18:33:36 +0000 (19:33 +0100)]
patch 8.2.2431: warning for -fno-strength-reduce with Clang 11

Problem:    Warning for -fno-strength-reduce with Clang 11.
Solution:   Adjust check for clang version number.

4 years agopatch 8.2.2430: :vimgrep expands wildcards twice v8.2.2430
Bram Moolenaar [Sat, 30 Jan 2021 17:09:06 +0000 (18:09 +0100)]
patch 8.2.2430: :vimgrep expands wildcards twice

Problem:    :vimgrep expands wildcards twice.
Solution:   Do not expand wildcards a second time.

4 years agopatch 8.2.2429: :goto does not work correctly with text properties v8.2.2429
Bram Moolenaar [Sat, 30 Jan 2021 16:16:28 +0000 (17:16 +0100)]
patch 8.2.2429: :goto does not work correctly with text properties

Problem:    :goto does not work correctly with text properties. (Sam McCall)
Solution:   Add a test. (Andrew Radev)  Also use the text property size when
            computing the remaining offset. (closes #5930)

4 years agopatch 8.2.2428: FocusGained does not work when 'ttymouse' is empty v8.2.2428
Bram Moolenaar [Sat, 30 Jan 2021 14:39:47 +0000 (15:39 +0100)]
patch 8.2.2428: FocusGained does not work when 'ttymouse' is empty

Problem:    FocusGained does not work when 'ttymouse' is empty.
Solution:   Don't use the short mouse code if there is a longer matching code.
            (closes #7755)  Add a test.

4 years agopatch 8.2.2427: can still switch windows for 'completefunc' v8.2.2427
Bram Moolenaar [Fri, 29 Jan 2021 20:47:24 +0000 (21:47 +0100)]
patch 8.2.2427: can still switch windows for 'completefunc'

Problem:    Can still switch windows for 'completefunc'.
Solution:   Also disallow switching windows for other completions.

4 years agopatch 8.2.2426: allowing 'completefunc' to switch windows causes trouble v8.2.2426
Bram Moolenaar [Fri, 29 Jan 2021 20:07:07 +0000 (21:07 +0100)]
patch 8.2.2426: allowing 'completefunc' to switch windows causes trouble

Problem:    Allowing 'completefunc' to switch windows causes trouble.
Solution:   use "textwinlock" instead of "textlock".

4 years agopatch 8.2.2425: cursor on invalid line with range and :substitute v8.2.2425
Bram Moolenaar [Thu, 28 Jan 2021 19:18:08 +0000 (20:18 +0100)]
patch 8.2.2425: cursor on invalid line with range and :substitute

Problem:    Cursor on invalid line with range and :substitute.
Solution:   Do not move the cursor when skipping commands. (closes #3434)

4 years agopatch 8.2.2424: some tests are known to cause an error with ASAN v8.2.2424
Bram Moolenaar [Thu, 28 Jan 2021 17:34:35 +0000 (18:34 +0100)]
patch 8.2.2424: some tests are known to cause an error with ASAN

Problem:    Some tests are known to cause an error with ASAN.
Solution:   Add CheckNotAsan.

4 years agopatch 8.2.2423: missing error message v8.2.2423
Bram Moolenaar [Thu, 28 Jan 2021 16:56:09 +0000 (17:56 +0100)]
patch 8.2.2423: missing error message

Problem:    Missing error message.
Solution:   Add the error message.

4 years agopatch 8.2.2422: crash when deleting with line number out of range v8.2.2422
Bram Moolenaar [Thu, 28 Jan 2021 16:24:58 +0000 (17:24 +0100)]
patch 8.2.2422: crash when deleting with line number out of range

Problem:    Crash when deleting with line number out of range. (Houyunsong)
Solution:   Avoid using a negative line number.

4 years agopatch 8.2.2421: double free when using autocommand with "argdel" v8.2.2421
Bram Moolenaar [Thu, 28 Jan 2021 13:24:55 +0000 (14:24 +0100)]
patch 8.2.2421: double free when using autocommand with "argdel"

Problem:    Double free when using autocommand with "argdel". (Houyunsong)
Solution:   Add the arglist_locked flag.

4 years agopatch 8.2.2420: too many problems with using all autocommand events v8.2.2420
Bram Moolenaar [Thu, 28 Jan 2021 12:47:59 +0000 (13:47 +0100)]
patch 8.2.2420: too many problems with using all autocommand events

Problem:    Too many problems with using all autocommand events.
Solution:   Disallow defining an autocommand for all events.

4 years agopatch 8.2.2419: autocmd test was failing on MS-Windows with GUI v8.2.2419
Bram Moolenaar [Thu, 28 Jan 2021 11:08:35 +0000 (12:08 +0100)]
patch 8.2.2419: autocmd test was failing on MS-Windows with GUI

Problem:    Autocmd test was failing on MS-Windows with GUI.
Solution:   Remove stray feedkeys().

4 years agopatch 8.2.2418: color not changed if ModeMsg highlight is set in InsertEnter v8.2.2418
Bram Moolenaar [Thu, 28 Jan 2021 10:07:44 +0000 (11:07 +0100)]
patch 8.2.2418: color not changed if ModeMsg highlight is set in InsertEnter

Problem:    Color not changed if ModeMsg highlight is set in InsertEnter
            autocmd event. (Paul Swanson)
Solution:   Call highlight_changed() after triggering InsertEnter.
            (closes #7751)

4 years agopatch 8.2.2417: condition stack values may be used when not set v8.2.2417
Bram Moolenaar [Wed, 27 Jan 2021 20:37:13 +0000 (21:37 +0100)]
patch 8.2.2417: condition stack values may be used when not set

Problem:    Condition stack values may be used when not set.
Solution:   Clear cs_script_var_len and cs_block_id just in case they get used
            later. (issue #7733)

4 years agopatch 8.2.2416: may get stuck in command line window state v8.2.2416
Bram Moolenaar [Wed, 27 Jan 2021 19:34:29 +0000 (20:34 +0100)]
patch 8.2.2416: may get stuck in command line window state

Problem:    May get stuck in command line window state.
Solution:   Reset "cmdwin_type" when editing buffer fails.  Make arglist test
            pass on MS-Windows.

4 years agopatch 8.2.2415: no way to check for the cmdwin feature v8.2.2415
Bram Moolenaar [Tue, 26 Jan 2021 21:42:21 +0000 (22:42 +0100)]
patch 8.2.2415: no way to check for the cmdwin feature

Problem:    No way to check for the cmdwin feature, cmdline_hist is now always
            enabled.
Solution:   Add has('cmdwin') support. Skip arglist test on Windows
            temporarily.

4 years agopatch 8.2.2414: using freed memory when closing the cmdline window v8.2.2414
Bram Moolenaar [Tue, 26 Jan 2021 21:00:52 +0000 (22:00 +0100)]
patch 8.2.2414: using freed memory when closing the cmdline window

Problem:    Using freed memory when closing the cmdline window.
Solution:   Check the window is still valid.

4 years agopatch 8.2.2413: crash when using :all while using a cmdline window v8.2.2413
Bram Moolenaar [Tue, 26 Jan 2021 20:35:08 +0000 (21:35 +0100)]
patch 8.2.2413: crash when using :all while using a cmdline window

Problem:    Crash when using :all while using a cmdline window. (Zdenek Dohnal)
Solution:   Disallow :all from the cmdline window.

4 years agopatch 8.2.2412: not all fields in "cstack" are initialized v8.2.2412
Bram Moolenaar [Tue, 26 Jan 2021 18:32:53 +0000 (19:32 +0100)]
patch 8.2.2412: not all fields in "cstack" are initialized

Problem:    Not all fields in "cstack" are initialized which might cause a
            crash.
Solution:   Use CLEAR_FIELD().

4 years agopatch 8.2.2411: profile test fails on MS-Windows v8.2.2411
Bram Moolenaar [Tue, 26 Jan 2021 11:06:30 +0000 (12:06 +0100)]
patch 8.2.2411: profile test fails on MS-Windows

Problem:    Profile test fails on MS-Windows.
Solution:   Do the profiling in a separate Vim command.

4 years agopatch 8.2.2410: build failure without the +profiling feature v8.2.2410
Bram Moolenaar [Mon, 25 Jan 2021 22:02:38 +0000 (23:02 +0100)]
patch 8.2.2410: build failure without the +profiling feature

Problem:    Build failure without the +profiling feature.
Solution:   Add dummy argument to macro.

4 years agoUpdate runtime files.
Bram Moolenaar [Mon, 25 Jan 2021 20:14:57 +0000 (21:14 +0100)]
Update runtime files.

4 years agopatch 8.2.2409: Vim9: profiling only works for one function v8.2.2409
Bram Moolenaar [Mon, 25 Jan 2021 20:01:48 +0000 (21:01 +0100)]
patch 8.2.2409: Vim9: profiling only works for one function

Problem:    Vim9: profiling only works for one function.
Solution:   Select the right instructions when calling and returning.
            (closes #7743)

4 years agopatch 8.2.2408: MinGW: "--preprocessor" flag no longer supported v8.2.2408
Bram Moolenaar [Mon, 25 Jan 2021 18:18:02 +0000 (19:18 +0100)]
patch 8.2.2408: MinGW: "--preprocessor" flag no longer supported

Problem:    MinGW: "--preprocessor" flag no longer supported.
Solution:   Remove the flag, use the defaults. (Christopher Wellons,
            closes #7741)

4 years agopatch 8.2.2407: old jumplist code is never used v8.2.2407
Bram Moolenaar [Mon, 25 Jan 2021 17:44:57 +0000 (18:44 +0100)]
patch 8.2.2407: old jumplist code is never used

Problem:    Old jumplist code is never used.
Solution:   Delete the dead code. (Yegappan Lakshmanan, closes #7740)

4 years agopatch 8.2.2406: Vim9: profiled :def function leaks memory v8.2.2406
Bram Moolenaar [Sun, 24 Jan 2021 20:30:48 +0000 (21:30 +0100)]
patch 8.2.2406: Vim9: profiled :def function leaks memory

Problem:    Vim9: profiled :def function leaks memory.
Solution:   Delete the profiled instructions.

4 years agopatch 8.2.2405: Vim9: no need to allow white space before "(" for :def v8.2.2405
Bram Moolenaar [Sun, 24 Jan 2021 20:14:20 +0000 (21:14 +0100)]
patch 8.2.2405: Vim9: no need to allow white space before "(" for :def

Problem:    Vim9: no need to allow white space before "(" for :def.
Solution:   Give an error for stray white space. (issue #7734)

4 years agopatch 8.2.2404: Vim9: profiling try/catch not correct v8.2.2404
Bram Moolenaar [Sun, 24 Jan 2021 19:52:00 +0000 (20:52 +0100)]
patch 8.2.2404: Vim9: profiling try/catch not correct

Problem:    Vim9: profiling try/catch not correct.
Solution:   Add profile instructions.  Fix that "entry" did not rethrow an
            excpetion.

4 years agopatch 8.2.2403: Vim9: profiling if/elseif/endif not correct v8.2.2403
Bram Moolenaar [Sun, 24 Jan 2021 16:53:47 +0000 (17:53 +0100)]
patch 8.2.2403: Vim9: profiling if/elseif/endif not correct

Problem:    Vim9: profiling if/elseif/endif not correct.
Solution:   Add profile instructions.  Fix that "elseif" was wrong.

4 years agopatch 8.2.2402: some filetypes not detected v8.2.2402
Bram Moolenaar [Sun, 24 Jan 2021 14:25:56 +0000 (15:25 +0100)]
patch 8.2.2402: some filetypes not detected

Problem:    Some filetypes not detected.
Solution:   Detect Ruby Signature and Puppet related files. (Doug Kearns)

4 years agopatch 8.2.2401: build fails without +profiling feature v8.2.2401
Bram Moolenaar [Sun, 24 Jan 2021 12:34:18 +0000 (13:34 +0100)]
patch 8.2.2401: build fails without +profiling feature

Problem:    Build fails without +profiling feature.
Solution:   Add #ifdefs.

4 years agopatch 8.2.2400: Vim9: compiled functions are not profiled v8.2.2400
Bram Moolenaar [Sun, 24 Jan 2021 11:53:53 +0000 (12:53 +0100)]
patch 8.2.2400: Vim9: compiled functions are not profiled

Problem:    Vim9: compiled functions are not profiled.
Solution:   Add initial changes to profile compiled functions.  Fix that a
            script-local function was hard to debug.

4 years agopatch 8.2.2399: fold test fails in wide terminal v8.2.2399
Bram Moolenaar [Sun, 24 Jan 2021 11:00:01 +0000 (12:00 +0100)]
patch 8.2.2399: fold test fails in wide terminal

Problem:    Fold test fails in wide terminal.
Solution:   Adjust the test. (Dominique Pelle, closes #7731, closes #7739)

4 years agopatch 8.2.2398: method test fails v8.2.2398
Bram Moolenaar [Sat, 23 Jan 2021 14:27:09 +0000 (15:27 +0100)]
patch 8.2.2398: method test fails

Problem:    Method test fails.
Solution:   Adjust test for allowed white space.

4 years agopatch 8.2.2397: Vim9: "%%" not seen as alternate file name for ":bdel" v8.2.2397
Bram Moolenaar [Sat, 23 Jan 2021 14:15:01 +0000 (15:15 +0100)]
patch 8.2.2397: Vim9: "%%" not seen as alternate file name for ":bdel"

Problem:    Vim9: "%%" not seen as alternate file name for commands with a
            buffer name argument.
Solution:   Recognize "%%" like "#". (closes #7732)

4 years agopatch 8.2.2396: Vim9: no white space allowed before "->" v8.2.2396
Bram Moolenaar [Sat, 23 Jan 2021 13:22:16 +0000 (14:22 +0100)]
patch 8.2.2396: Vim9: no white space allowed before "->"

Problem:    Vim9: no white space allowed before "->".
Solution:   Allow for white space. (closes #7725)

4 years agopatch 8.2.2395: Vim9: error for wrong type may report wrong line number v8.2.2395
Bram Moolenaar [Sat, 23 Jan 2021 12:39:14 +0000 (13:39 +0100)]
patch 8.2.2395: Vim9: error for wrong type may report wrong line number

Problem:    Vim9: error for wrong type may report wrong line number.
Solution:   Save and restore the line number when evaluating the expression.
            (closes #7727)

4 years agopatch 8.2.2394: Vim9: min() and max() return type is "any" v8.2.2394
Bram Moolenaar [Fri, 22 Jan 2021 21:31:10 +0000 (22:31 +0100)]
patch 8.2.2394: Vim9: min() and max() return type is "any"

Problem:    Vim9: min() and max() return type is "any".
Solution:   Use return type "number". (closes #7728)

4 years agopatch 8.2.2393: Vim9: error message when script line starts with "[{" v8.2.2393
Bram Moolenaar [Fri, 22 Jan 2021 21:06:56 +0000 (22:06 +0100)]
patch 8.2.2393: Vim9: error message when script line starts with "[{"

Problem:    Vim9: error message when script line starts with "[{".
Solution:   Do not give an error for checking for end of list.

4 years agopatch 8.2.2392: fennel filetype not recognized v8.2.2392
Bram Moolenaar [Fri, 22 Jan 2021 19:55:04 +0000 (20:55 +0100)]
patch 8.2.2392: fennel filetype not recognized

Problem:    Fennel filetype not recognized.
Solution:   Detect with pattern and hashbang. (Chinmay Dalal, closes #7729)

4 years agopatch 8.2.2391: memory leak when creating a global function with closure v8.2.2391
Bram Moolenaar [Fri, 22 Jan 2021 19:46:27 +0000 (20:46 +0100)]
patch 8.2.2391: memory leak when creating a global function with closure

Problem:    Memory leak when creating a global function with closure.
Solution:   Create a separate partial for every instantiated function.

4 years agopatch 8.2.2390: Vim9: using positive offset is unexpected v8.2.2390
Bram Moolenaar [Fri, 22 Jan 2021 16:51:06 +0000 (17:51 +0100)]
patch 8.2.2390: Vim9: using positive offset is unexpected

Problem:    Vim9: using positive offset is unexpected.
Solution:   Use int8_T instead of char. (James McCoy)

4 years agopatch 8.2.2389: test failure on a few systems v8.2.2389
Bram Moolenaar [Thu, 21 Jan 2021 21:53:38 +0000 (22:53 +0100)]
patch 8.2.2389: test failure on a few systems

Problem:    Test failure on a few systems.
Solution:   Avoid that "char" value is negative.

4 years agopatch 8.2.2388: no easy way to get the maximum or mininum number value v8.2.2388
Bram Moolenaar [Thu, 21 Jan 2021 20:42:31 +0000 (21:42 +0100)]
patch 8.2.2388: no easy way to get the maximum or mininum number value

Problem:    No easy way to get the maximum or mininum number value.
Solution:   Add v:numbermax and v:numbermin.

4 years agopatch 8.2.2387: runtime type check does not mention argument index v8.2.2387
Bram Moolenaar [Thu, 21 Jan 2021 19:21:29 +0000 (20:21 +0100)]
patch 8.2.2387: runtime type check does not mention argument index

Problem:    Runtime type check does not mention argument index.
Solution:   Add ct_arg_idx. (closes #7720)

4 years agopatch 8.2.2386: Vim9: crash when using ":silent! put" v8.2.2386
Bram Moolenaar [Thu, 21 Jan 2021 18:41:16 +0000 (19:41 +0100)]
patch 8.2.2386: Vim9: crash when using ":silent! put"

Problem:    Vim9: crash when using ":silent! put".
Solution:   When ignoring an error for ":silent!" rewind the stack and skip
            ahead to restoring the cmdmod. (closes #7717)

4 years agopatch 8.2.2385: "gj" and "gk" do not work correctly when inside a fold v8.2.2385
Bram Moolenaar [Thu, 21 Jan 2021 16:03:07 +0000 (17:03 +0100)]
patch 8.2.2385: "gj" and "gk" do not work correctly when inside a fold

Problem:    "gj" and "gk" do not work correctly when inside a fold.
Solution:   Move check for folding. (closes #7724, closes #4095)

4 years agopatch 8.2.2384: turtle filetype not recognized v8.2.2384
Bram Moolenaar [Thu, 21 Jan 2021 13:45:13 +0000 (14:45 +0100)]
patch 8.2.2384: turtle filetype not recognized

Problem:    Turtle filetype not recognized.
Solution:   Add a rule to detect turtle files. (closes #7722)

4 years agopatch 8.2.2383: focus escape sequences are not named v8.2.2383
Bram Moolenaar [Thu, 21 Jan 2021 12:36:43 +0000 (13:36 +0100)]
patch 8.2.2383: focus escape sequences are not named

Problem:    Focus escape sequences are not named in ":set termcap" output.
Solution:   Add the names to the list. (closes #7718)

4 years agopatch 8.2.2382: build failure v8.2.2382
Bram Moolenaar [Thu, 21 Jan 2021 12:03:20 +0000 (13:03 +0100)]
patch 8.2.2382: build failure

Problem:    Build failure.
Solution:   Add missing changes.

4 years agopatch 8.2.2381: Vim9: divide by zero does not abort expression execution v8.2.2381
Bram Moolenaar [Thu, 21 Jan 2021 11:34:14 +0000 (12:34 +0100)]
patch 8.2.2381: Vim9: divide by zero does not abort expression execution

Problem:    Vim9: divide by zero does not abort expression execution.
Solution:   Use a "failed" flag. (issue #7704)

4 years agopatch 8.2.2380: Vim9: occasional crash when using try/catch and a timer v8.2.2380
Bram Moolenaar [Wed, 20 Jan 2021 21:22:49 +0000 (22:22 +0100)]
patch 8.2.2380: Vim9: occasional crash when using try/catch and a timer

Problem:    Vim9: occasional crash when using try/catch and a timer.
Solution:   Save and restore "need_rethrow" when invoking a timer callback.
            (closes #7708)

4 years agopatch 8.2.2379: do spell suggestions twice if 'spellsuggest' contains number v8.2.2379
Bram Moolenaar [Wed, 20 Jan 2021 20:42:33 +0000 (21:42 +0100)]
patch 8.2.2379: do spell suggestions twice if 'spellsuggest' contains number

Problem:    Finding spell suggestions twice if 'spellsuggest' contains number.
Solution:   Only do internal suggestions once.  (closes #7713)

4 years agopatch 8.2.2378: Vim9: no error message for dividing by zero v8.2.2378
Bram Moolenaar [Wed, 20 Jan 2021 20:23:14 +0000 (21:23 +0100)]
patch 8.2.2378: Vim9: no error message for dividing by zero

Problem:    Vim9: no error message for dividing by zero.
Solution:   Give an error message. (issue #7704)

4 years agopatch 8.2.2377: Vim9: crash when using a range after another expression v8.2.2377
Bram Moolenaar [Tue, 19 Jan 2021 21:48:09 +0000 (22:48 +0100)]
patch 8.2.2377: Vim9: crash when using a range after another expression

Problem:    Vim9: crash when using a range after another expression.
Solution:   Set the variable type to number. Fix using :put with a range and
            the "=" register. (closes #7706)

4 years agopatch 8.2.2376: Vim9: crash when dividing by zero in compiled code v8.2.2376
Bram Moolenaar [Tue, 19 Jan 2021 21:16:41 +0000 (22:16 +0100)]
patch 8.2.2376: Vim9: crash when dividing by zero in compiled code

Problem:    Vim9: crash when dividing by zero in compiled code using
            constants.
Solution:   Call num_divide() and num_modulus(). (closes #7704)

4 years agopatch 8.2.2375: test for RGB color skipped in the terminal v8.2.2375
Bram Moolenaar [Tue, 19 Jan 2021 16:22:58 +0000 (17:22 +0100)]
patch 8.2.2375: test for RGB color skipped in the terminal

Problem:    Test for RGB color skipped in the terminal.
Solution:   Run the GUI if possible.

4 years agoUpdate runtime files.
Bram Moolenaar [Mon, 18 Jan 2021 18:55:44 +0000 (19:55 +0100)]
Update runtime files.

4 years agopatch 8.2.2374: accessing uninitialized memory in test_undo v8.2.2374
Bram Moolenaar [Sun, 17 Jan 2021 21:04:02 +0000 (22:04 +0100)]
patch 8.2.2374: accessing uninitialized memory in test_undo

Problem:    Accessing uninitialized memory in test_undo.
Solution:   Do not look in typebuf.tb_buf if it is empty. (Dominique Pellé,
            closes #7697)

4 years agopatch 8.2.2373: Vim9: list assignment only accepts a number index v8.2.2373
Bram Moolenaar [Sun, 17 Jan 2021 20:51:24 +0000 (21:51 +0100)]
patch 8.2.2373: Vim9: list assignment only accepts a number index

Problem:    Vim9: list assignment only accepts a number index.
Solution:   Accept "any" and do a runtime type check. (closes #7694)

4 years agopatch 8.2.2372: confusing error message for wrong :let command v8.2.2372
Bram Moolenaar [Sun, 17 Jan 2021 19:52:13 +0000 (20:52 +0100)]
patch 8.2.2372: confusing error message for wrong :let command

Problem:    Confusing error message for wrong :let command.
Solution:   Only check for type in Vim9 script.

4 years agopatch 8.2.2371: Vim9: crash when using types in :for with unpack v8.2.2371
Bram Moolenaar [Sun, 17 Jan 2021 19:23:38 +0000 (20:23 +0100)]
patch 8.2.2371: Vim9: crash when using types in :for with unpack

Problem:    Vim9: crash when using types in :for with unpack.
Solution:   Check for skip_var_list() failing. Pass include_type to
            skip_var_one(). Skip type when compiling. (closes #7694)

4 years agopatch 8.2.2370: Vim9: command fails in catch block v8.2.2370
Bram Moolenaar [Sun, 17 Jan 2021 18:20:32 +0000 (19:20 +0100)]
patch 8.2.2370: Vim9: command fails in catch block

Problem:    Vim9: command fails in catch block.
Solution:   Reset force_abort and need_rethrow. (closes #7692)

4 years agopatch 8.2.2369: Vim9: functions return true/false but can't be used as bool v8.2.2369
Bram Moolenaar [Sun, 17 Jan 2021 15:16:23 +0000 (16:16 +0100)]
patch 8.2.2369: Vim9: functions return true/false but can't be used as bool

Problem:    Vim9: functions return true/false but can't be used as bool.
Solution:   Add ret_number_bool(). (closes #7693)

4 years agopatch 8.2.2368: insufficient tests for setting options v8.2.2368
Bram Moolenaar [Sun, 17 Jan 2021 12:48:03 +0000 (13:48 +0100)]
patch 8.2.2368: insufficient tests for setting options

Problem:    Insufficient tests for setting options.
Solution:   Add a few tests. (Dominique Pellé, closes #7695)

4 years agopatch 8.2.2367: test failures on some less often used systems v8.2.2367
Bram Moolenaar [Sun, 17 Jan 2021 12:21:20 +0000 (13:21 +0100)]
patch 8.2.2367: test failures on some less often used systems

Problem:    Test failures on some less often used systems.
Solution:   Adjust printf formats and types. (James McCoy, closes #7691)

4 years agopatch 8.2.2366: when using ":sleep" the cursor is always displayed v8.2.2366
Bram Moolenaar [Sat, 16 Jan 2021 19:21:23 +0000 (20:21 +0100)]
patch 8.2.2366: when using ":sleep" the cursor is always displayed

Problem:    When using ":sleep" the cursor is always displayed.
Solution:   Do not display the cursor when using ":sleep!". (Jeremy Lerner,
            closes #7688)

4 years agopatch 8.2.2365: Vim9: no check for map() changing item type at script level v8.2.2365
Bram Moolenaar [Sat, 16 Jan 2021 18:01:53 +0000 (19:01 +0100)]
patch 8.2.2365: Vim9: no check for map() changing item type at script level

Problem:    Vim9: no check for map() changing item type at script level.
Solution:   Check the new value type.

4 years agopatch 8.2.2364: Vim9: line break in lambda accesses freed memory v8.2.2364
Bram Moolenaar [Sat, 16 Jan 2021 17:09:52 +0000 (18:09 +0100)]
patch 8.2.2364: Vim9: line break in lambda accesses freed memory

Problem:    Vim9: line break in lambda accesses freed memory.
Solution:   Make a copy of the return type. (closes #7664)

4 years agopatch 8.2.2363: curpos() does not accept a string argument as before v8.2.2363
Bram Moolenaar [Sat, 16 Jan 2021 15:52:49 +0000 (16:52 +0100)]
patch 8.2.2363: curpos() does not accept a string argument as before

Problem:    curpos() does not accept a string argument as before.
solution:   Make a string argument work again. (Yegappan Lakshmanan,
            closes #7690

4 years agopatch 8.2.2362: Vim9: check of builtin function argument type is incomplete v8.2.2362
Bram Moolenaar [Sat, 16 Jan 2021 15:07:01 +0000 (16:07 +0100)]
patch 8.2.2362: Vim9: check of builtin function argument type is incomplete

Problem:    Vim9: check of builtin function argument type is incomplete.
Solution:   Use need_type() instead of check_arg_type().

4 years agopatch 8.2.2361: Vim9: no highlight for "s///gc" when using 'opfunc' v8.2.2361
Bram Moolenaar [Sat, 16 Jan 2021 13:34:45 +0000 (14:34 +0100)]
patch 8.2.2361: Vim9: no highlight for "s///gc" when using 'opfunc'

Problem:    Vim9: no highlight for "s///gc" when using 'opfunc'.
Solution:   Reset 'lazyredraw' temporarily. (closes #7687)

4 years agopatch 8.2.2360: test leaves file behind v8.2.2360
Bram Moolenaar [Sat, 16 Jan 2021 12:43:31 +0000 (13:43 +0100)]
patch 8.2.2360: test leaves file behind

Problem:    Test leaves file behind.
Solution:   Delete the right file. (Dominique Pellé, closes #7689)

4 years agopatch 8.2.2359: strange test failure with MS-Windows v8.2.2359
Bram Moolenaar [Sat, 16 Jan 2021 12:11:42 +0000 (13:11 +0100)]
patch 8.2.2359: strange test failure with MS-Windows

Problem:    Strange test failure with MS-Windows.
Solution:   Skip the system() call for now.