]> granicus.if.org Git - vim/log
vim
2 years agoAdd missing part of patch
Bram Moolenaar [Mon, 12 Sep 2022 14:16:29 +0000 (15:16 +0100)]
Add missing part of patch

2 years agopatch 9.0.0450: return value of argument check functions is inconsistent v9.0.0450
zeertzjq [Mon, 12 Sep 2022 13:09:30 +0000 (14:09 +0100)]
patch 9.0.0450: return value of argument check functions is inconsistent

Problem:    Return value of argument check functions is inconsistent.
Solution:   Return OK/FAIL instead of TRUE/FALSE. (closes #11112)

2 years agopatch 9.0.0449: there is no easy way to translate a key code into a string v9.0.0449
zeertzjq [Mon, 12 Sep 2022 12:38:41 +0000 (13:38 +0100)]
patch 9.0.0449: there is no easy way to translate a key code into a string

Problem:    There is no easy way to translate a string with a key code into a
            readable string.
Solution:   Add the keytrans() function. (closes #11114)

2 years agopatch 9.0.0448: SubRip files are not recognized v9.0.0448
ObserverOfTime [Mon, 12 Sep 2022 11:43:23 +0000 (12:43 +0100)]
patch 9.0.0448: SubRip files are not recognized

Problem:    SubRip files are not recognized.
Solution:   Add a pattern for SubRip. (closes #11113)

2 years agopatch 9.0.0447: using :echowin while at the hit-enter prompt causes problems v9.0.0447
Bram Moolenaar [Sun, 11 Sep 2022 20:36:17 +0000 (21:36 +0100)]
patch 9.0.0447: using :echowin while at the hit-enter prompt causes problems

Problem:    Using :echowin while at the hit-enter prompt causes problems.
Solution:   Do not prompt for :echowin.  Postpone showing the message window.
            Start the timer when the window is displayed.

2 years agopatch 9.0.0446: message window may be positioned too low v9.0.0446
Bram Moolenaar [Sun, 11 Sep 2022 19:12:15 +0000 (20:12 +0100)]
patch 9.0.0446: message window may be positioned too low

Problem:    Message window may be positioned too low.
Solution:   Compute cmdline_row before computing the position.

2 years agopatch 9.0.0445: when opening/closing window text moves up/down v9.0.0445
Luuk van Baal [Sun, 11 Sep 2022 15:59:53 +0000 (16:59 +0100)]
patch 9.0.0445: when opening/closing window text moves up/down

Problem:    When opening/closing window text moves up/down.
Solution:   Add the 'splitscroll' option.  When off text will keep its
            position as much as possible.

2 years agopatch 9.0.0444: trying to declare g:variable gives confusing error v9.0.0444
Bram Moolenaar [Sun, 11 Sep 2022 14:14:05 +0000 (15:14 +0100)]
patch 9.0.0444: trying to declare g:variable gives confusing error

Problem:    Trying to declare g:variable gives confusing error.
Solution:   Give a better error message. (closes #11108)

2 years agopatch 9.0.0443: blueprint files are not recognized v9.0.0443
Gabriele Musco [Sun, 11 Sep 2022 12:37:37 +0000 (13:37 +0100)]
patch 9.0.0443: blueprint files are not recognized

Problem:    Blueprint files are not recognized.
Solution:   Add a pattern for blueprint files. (Gabriele Musco, closes #11107)

2 years agopatch 9.0.0442: virtual text "above" doesn't handel line numbers v9.0.0442
Bram Moolenaar [Sun, 11 Sep 2022 12:31:01 +0000 (13:31 +0100)]
patch 9.0.0442: virtual text "above" doesn't handel line numbers

Problem:    Virtual text "above" doesn't handel line numbers.
Solution:   Take the left column offset into account. (issue #11084)
            Also make padding work.

2 years agopatch 9.0.0441: closure in for loop test fails on some systems v9.0.0441
Bram Moolenaar [Sun, 11 Sep 2022 11:01:04 +0000 (12:01 +0100)]
patch 9.0.0441: closure in for loop test fails on some systems

Problem:    Closure in for loop test fails on some systems.
Solution:   Do not wait for the ruler to show up. (issue #11106)

2 years agopatch 9.0.0440: crash when using mkdir() with "R" flag in compiled function v9.0.0440
Bram Moolenaar [Sun, 11 Sep 2022 10:49:22 +0000 (11:49 +0100)]
patch 9.0.0440: crash when using mkdir() with "R" flag in compiled function

Problem:    Crash when using mkdir() with "R" flag in compiled function.
Solution:   Reserve a variable for deferred function calls.  Handle more than
            one argument.

2 years agopatch 9.0.0439: cursor wrong if inserting before line with virtual text above v9.0.0439
Bram Moolenaar [Sat, 10 Sep 2022 21:32:14 +0000 (22:32 +0100)]
patch 9.0.0439: cursor wrong if inserting before line with virtual text above

Problem:    Cursor wrong if inserting before line with virtual text above.
Solution:   Add the width of the "above" virtual text to the cursor position.
            (issue #11084)

2 years agopatch 9.0.0438: cannot put virtual text above a line v9.0.0438
Bram Moolenaar [Sat, 10 Sep 2022 19:00:56 +0000 (20:00 +0100)]
patch 9.0.0438: cannot put virtual text above a line

Problem:    Cannot put virtual text above a line.
Solution:   Add the "above" value for "text_align".

2 years agopatch 9.0.0437: no error when custom completion function returns wrong type v9.0.0437
Bram Moolenaar [Sat, 10 Sep 2022 12:52:26 +0000 (13:52 +0100)]
patch 9.0.0437: no error when custom completion function returns wrong type

Problem:    No error when a custom completion function returns something else
            than the expected list.
Solution:   Give an error. (closes #11100)

2 years agoUpdate runtime files
Bram Moolenaar [Sat, 10 Sep 2022 12:13:14 +0000 (13:13 +0100)]
Update runtime files

2 years agopatch 9.0.0436: CI: running tests in parallel causes flakiness v9.0.0436
K.Takata [Sat, 10 Sep 2022 12:03:12 +0000 (13:03 +0100)]
patch 9.0.0436: CI: running tests in parallel causes flakiness

Problem:    CI: running tests in parallel causes flakiness.
Solution:   Reorganize the MS-Windows runs. (Ken Takata, closes #11101)

2 years agopatch 9.0.0435: compiler warning for uninitialized variable v9.0.0435
Bram Moolenaar [Sat, 10 Sep 2022 11:36:00 +0000 (12:36 +0100)]
patch 9.0.0435: compiler warning for uninitialized variable

Problem:    Compiler warning for uninitialized variable.
Solution:   Initialize it.

2 years agopatch 9.0.0434: gitignore files are not recognized v9.0.0434
ObserverOfTime [Sat, 10 Sep 2022 10:04:24 +0000 (11:04 +0100)]
patch 9.0.0434: gitignore files are not recognized

Problem:    gitignore files are not recognized.
Solution:   Add patterns for the gitignore filetype. (closes #11102)

2 years agopatch 9.0.0433: Coverity warns for not checking allocation failure v9.0.0433
Bram Moolenaar [Sat, 10 Sep 2022 09:42:20 +0000 (10:42 +0100)]
patch 9.0.0433: Coverity warns for not checking allocation failure

Problem:    Coverity warns for not checking allocation failure.
Solution:   Check that allocating a list or blob succeeded.

2 years agopatch 9.0.0432: crash when using for loop variable in closure v9.0.0432
Bram Moolenaar [Fri, 9 Sep 2022 20:35:36 +0000 (21:35 +0100)]
patch 9.0.0432: crash when using for loop variable in closure

Problem:    Crash when using for loop variable in closure.
Solution:   Check that the variable wasn't deleted. (issue #11094)

2 years agopatch 9.0.0431: current mode shows in message window v9.0.0431
Bram Moolenaar [Fri, 9 Sep 2022 19:19:40 +0000 (20:19 +0100)]
patch 9.0.0431: current mode shows in message window

Problem:    Current mode shows in message window.
Solution:   Reset in_echowindow before redrawing. (issue #11094)

2 years agopatch 9.0.0430: cannot use repeat() with a blob v9.0.0430
Bakudankun [Fri, 9 Sep 2022 17:46:47 +0000 (18:46 +0100)]
patch 9.0.0430: cannot use repeat() with a blob

Problem:    Cannot use repeat() with a blob.
Solution:   Implement blob repeat. (closes #11090)

2 years agopatch 9.0.0429: not all keys are tested for the MS-Windows GUI v9.0.0429
Yegappan Lakshmanan [Fri, 9 Sep 2022 16:39:02 +0000 (17:39 +0100)]
patch 9.0.0429: not all keys are tested for the MS-Windows GUI

Problem:    Not all keys are tested for the MS-Windows GUI.
Solution:   Add more key codes to the list. (Yegappan Lakshmanan,
            closes #11097)

2 years agopatch 9.0.0428: autocmd test uses common file name v9.0.0428
Bram Moolenaar [Fri, 9 Sep 2022 16:09:35 +0000 (17:09 +0100)]
patch 9.0.0428: autocmd test uses common file name

Problem:    Autocmd test uses common file name.
Solution:   Use unique name to reduce flakiness.

2 years agopatch 9.0.0427: Drupal theme files are not recognized v9.0.0427
Rodrigo Aguilera [Fri, 9 Sep 2022 15:10:26 +0000 (16:10 +0100)]
patch 9.0.0427: Drupal theme files are not recognized

Problem:    Drupal theme files are not recognized.
Solution:   Use php filetype for Drupl theme files.  Remove trailing spaces.
            (Rodrigo Aguilera, closes #11096)

2 years agopatch 9.0.0426: failed flaky tests reports only start time v9.0.0426
Bram Moolenaar [Fri, 9 Sep 2022 14:09:59 +0000 (15:09 +0100)]
patch 9.0.0426: failed flaky tests reports only start time

Problem:    Failed flaky tests reports only start time.
Solution:   Also report the end time.

2 years agopatch 9.0.0425: autocmd test is a bit flaky on MS-Windows v9.0.0425
Bram Moolenaar [Fri, 9 Sep 2022 14:08:10 +0000 (15:08 +0100)]
patch 9.0.0425: autocmd test is a bit flaky on MS-Windows

Problem:    Autocmd test is a bit flaky on MS-Windows.
Solution:   Add a bit more sleeping. (Ken Takata, closes #11095)

2 years agopatch 9.0.0424: gitattributes files are not recognized v9.0.0424
ObserverOfTime [Fri, 9 Sep 2022 13:11:41 +0000 (14:11 +0100)]
patch 9.0.0424: gitattributes files are not recognized

Problem:    gitattributes files are not recognized.
Solution:   Add patterns to match gitattributes files. (closes #11085)

2 years agopatch 9.0.0423: "for" and "while" not recognized after :vim9cmd and :legacy v9.0.0423
Bram Moolenaar [Fri, 9 Sep 2022 12:27:59 +0000 (13:27 +0100)]
patch 9.0.0423: "for" and "while" not recognized after :vim9cmd and :legacy

Problem:    "for" and "while" not recognized after :vim9cmd and :legacy.
            (Emanuele Torre)
Solution:   Recognize all the command modifiers. (closes #11087)
            Add a test to check the list of modifiers.

2 years agopatch 9.0.0422: not enough testing of the :all command v9.0.0422
Yegappan Lakshmanan [Fri, 9 Sep 2022 10:27:59 +0000 (11:27 +0100)]
patch 9.0.0422: not enough testing of the :all command

Problem:    Not enough testing of the :all command.
Solution:   Add more testing. (Yegappan Lakshmanan, closes #11091)

2 years agopatch 9.0.0421: MS-Windows makefiles are inconsistently named v9.0.0421
K.Takata [Fri, 9 Sep 2022 09:52:47 +0000 (10:52 +0100)]
patch 9.0.0421: MS-Windows makefiles are inconsistently named

Problem:    MS-Windows makefiles are inconsistently named.
Solution:   Use consistent names. (Ken Takata, closes #11088)

2 years agopatch 9.0.0420: function went missing v9.0.0420
Bram Moolenaar [Thu, 8 Sep 2022 19:49:22 +0000 (20:49 +0100)]
patch 9.0.0420: function went missing

Problem:    Function went missing.
Solution:   Add the function back.

2 years agopatch 9.0.0419: the :defer command does not check the function arguments v9.0.0419
Bram Moolenaar [Thu, 8 Sep 2022 18:51:45 +0000 (19:51 +0100)]
patch 9.0.0419: the :defer command does not check the function arguments

Problem:    The :defer command does not check the function argument count and
            types.
Solution:   Check the function arguments when adding a deferred function.

2 years agopatch 9.0.0418: manually deleting temp test files v9.0.0418
Bram Moolenaar [Thu, 8 Sep 2022 15:39:22 +0000 (16:39 +0100)]
patch 9.0.0418: manually deleting temp test files

Problem:    Manually deleting temp test files.
Solution:   Use the 'D' flag of writefile() and mkdir().

2 years agopatch 9.0.0417: Jsonnet files are not recognized v9.0.0417
=?UTF-8?q?Cezary=20Dro=C5=BCak?= [Thu, 8 Sep 2022 13:41:48 +0000 (14:41 +0100)]
patch 9.0.0417: Jsonnet files are not recognized

Problem:    Jsonnet files are not recognized.
Solution:   Add a pattern for Jsonnet files. (Cezary Drożak, closes #11073,
            closes #11081)

2 years agopatch 9.0.0416: ml_get error when appending lines in popup window v9.0.0416
Bram Moolenaar [Thu, 8 Sep 2022 12:43:10 +0000 (13:43 +0100)]
patch 9.0.0416: ml_get error when appending lines in popup window

Problem:    ml_get error when appending lines in popup window.
Solution:   Only update w_topline when w_buffer matches curbuf.
            (closes #11074)

2 years agopatch 9.0.0415: on MS-Windows some tests are flaky v9.0.0415
K.Takata [Thu, 8 Sep 2022 11:28:02 +0000 (12:28 +0100)]
patch 9.0.0415: on MS-Windows some tests are flaky

Problem:    On MS-Windows some tests are flaky.
Solution:   Add sleeps, disable swapfile, mark test as flaky. (Ken Takata,
            closes #11082)

2 years agopatch 9.0.0414: matchstr() still does not match column offset v9.0.0414
Bram Moolenaar [Thu, 8 Sep 2022 11:17:06 +0000 (12:17 +0100)]
patch 9.0.0414: matchstr() still does not match column offset

Problem:    matchstr() still does not match column offset when done after a
            text search.
Solution:   Only use the line number for a multi-line search.  Fix the test.
            (closes #10938)

2 years agopatch 9.0.0413: ASAN reports a memory leak v9.0.0413
K.Takata [Thu, 8 Sep 2022 09:55:38 +0000 (10:55 +0100)]
patch 9.0.0413: ASAN reports a memory leak

Problem:    ASAN reports a memory leak.
Solution:   Free the string received from the server. (Ken Takata,
            closes #11080)

2 years agopatch 9.0.0412: compiler warning for unused argument v9.0.0412
Bram Moolenaar [Wed, 7 Sep 2022 20:46:56 +0000 (21:46 +0100)]
patch 9.0.0412: compiler warning for unused argument

Problem:    Compiler warning for unused argument.
Solution:   Add UNUSED.

2 years agopatch 9.0.0411: only created files can be cleaned up with one call v9.0.0411
Bram Moolenaar [Wed, 7 Sep 2022 20:30:44 +0000 (21:30 +0100)]
patch 9.0.0411: only created files can be cleaned up with one call

Problem:    Only created files can be cleaned up with one call.
Solution:   Add flags to mkdir() to delete with a deferred function.
            Expand the writefile() name to a full path to handle changing
            directory.

2 years agopatch 9.0.0410: struct member cts_lnum is unused v9.0.0410
Bram Moolenaar [Wed, 7 Sep 2022 19:01:17 +0000 (20:01 +0100)]
patch 9.0.0410: struct member cts_lnum is unused

Problem:    Struct member cts_lnum is unused.
Solution:   Delete it.

2 years agopatch 9.0.0409: #{g:x} was seen as a curly-braces expression v9.0.0409
ii14 [Wed, 7 Sep 2022 18:40:17 +0000 (19:40 +0100)]
patch 9.0.0409: #{g:x} was seen as a curly-braces expression

Problem:    #{g:x} was seen as a curly-braces expression.
Solution:   Do never see #{} as a curly-braces expression. (closes #11075)

2 years agopatch 9.0.0408: GUI test sometimes fails on MS-Windows v9.0.0408
K.Takata [Wed, 7 Sep 2022 18:03:42 +0000 (19:03 +0100)]
patch 9.0.0408: GUI test sometimes fails on MS-Windows

Problem:    GUI test sometimes fails on MS-Windows.
Solution:   Make sure Vim is the foreground window. (Ken Takata, closes #11077)

2 years agopatch 9.0.0407: matchstr() does match column offset v9.0.0407
Bram Moolenaar [Wed, 7 Sep 2022 17:21:24 +0000 (18:21 +0100)]
patch 9.0.0407: matchstr() does match column offset

Problem:    matchstr() does match column offset. (Yasuhiro Matsumoto)
Solution:   Accept line number zero. (closes #10938)

2 years agopatch 9.0.0406: deferred functions not invoked when partial func exits v9.0.0406
Bram Moolenaar [Wed, 7 Sep 2022 16:28:09 +0000 (17:28 +0100)]
patch 9.0.0406: deferred functions not invoked when partial func exits

Problem:    Deferred functions not invoked when partial func exits.
Solution:   Create a funccall_T when calling a :def function.

2 years agopatch 9.0.0405: arguments in a partial not used by a :def function v9.0.0405
Bram Moolenaar [Wed, 7 Sep 2022 15:48:46 +0000 (16:48 +0100)]
patch 9.0.0405: arguments in a partial not used by a :def function

Problem:    Arguments in a partial not used by a :def function.
Solution:   Put the partial arguments on the stack.

2 years agopatch 9.0.0404: crash when passing invalid arguments to assert_fails() v9.0.0404
Bram Moolenaar [Wed, 7 Sep 2022 14:20:26 +0000 (15:20 +0100)]
patch 9.0.0404: crash when passing invalid arguments to assert_fails()

Problem:    Crash when passing invalid arguments to assert_fails().
Solution:   Check for NULL string.

2 years agopatch 9.0.0403: 'equalalways' may be off when 'laststatus' is zero v9.0.0403
Luuk van Baal [Wed, 7 Sep 2022 13:42:49 +0000 (14:42 +0100)]
patch 9.0.0403: 'equalalways' may be off when 'laststatus' is zero

Problem:    'equalalways' may be off when 'laststatus' is zero.
Solution:   call last_status() before win_equal(). (Luuk van Baal,
            closes #11070)

2 years agopatch 9.0.0402: javascript module files are not recoginzed v9.0.0402
Brett Holman [Wed, 7 Sep 2022 13:13:31 +0000 (14:13 +0100)]
patch 9.0.0402: javascript module files are not recoginzed

Problem:    Javascript module files are not recoginzed.
Solution:   Recognize "*.jsm" files as Javascript. (Brett Holman,
            closes #11069)

2 years agopatch 9.0.0401: CI uses older clang version v9.0.0401
Philip H [Wed, 7 Sep 2022 12:30:19 +0000 (13:30 +0100)]
patch 9.0.0401: CI uses older clang version

Problem:    CI uses older clang version.
Solution:   Switch from clang 14 to 15. (closes #11066)

2 years agopatch 9.0.0400: GUI test sometimes hangs on CI v9.0.0400
K.Takata [Wed, 7 Sep 2022 12:01:11 +0000 (13:01 +0100)]
patch 9.0.0400: GUI test sometimes hangs on CI

Problem:    GUI test sometimes hangs on CI.
Solution:   Delete a test file explicitly. (Ken Takata, closes #11072)

2 years agopatch 9.0.0399: using :defer in expression funcref not tested v9.0.0399
Bram Moolenaar [Tue, 6 Sep 2022 20:02:35 +0000 (21:02 +0100)]
patch 9.0.0399: using :defer in expression funcref not tested

Problem:    Using :defer in expression funcref not tested.
Solution:   Add a test.  Fix uncovered problems.

2 years agopatch 9.0.0398: members of funccall_T are inconsistently named v9.0.0398
Bram Moolenaar [Tue, 6 Sep 2022 17:57:08 +0000 (18:57 +0100)]
patch 9.0.0398: members of funccall_T are inconsistently named

Problem:    Members of funccall_T are inconsistently named.
Solution:   Use the "fc_" prefix for all members.

2 years agopatch 9.0.0397: :defer not tested with exceptions and ":qa!" v9.0.0397
Bram Moolenaar [Tue, 6 Sep 2022 17:31:14 +0000 (18:31 +0100)]
patch 9.0.0397: :defer not tested with exceptions and ":qa!"

Problem:    :defer not tested with exceptions and ":qa!".
Solution:   Test :defer works when exceptions are thrown and when ":qa!" is
            used.  Invoke the deferred calls on exit.

2 years agopatch 9.0.0396: :findrepl does not escape '&' and '~' properly v9.0.0396
matveyt [Tue, 6 Sep 2022 16:00:15 +0000 (17:00 +0100)]
patch 9.0.0396: :findrepl does not escape '&' and '~' properly

Problem:    :findrepl does not escape '&' and '~' properly.
Solution:   Escape depending on the value of 'magic'. (closes #11067)

2 years agopatch 9.0.0395: clang warnings for function prototypes v9.0.0395
Philip H [Tue, 6 Sep 2022 15:31:26 +0000 (16:31 +0100)]
patch 9.0.0395: clang warnings for function prototypes

Problem:    Clang warnings for function prototypes.
Solution:   Remove incomplete function prototypes. (closes #11068)

2 years agopatch 9.0.0394: Cygwin: multibyte characters may be broken in terminal window v9.0.0394
K.Takata [Tue, 6 Sep 2022 10:26:56 +0000 (11:26 +0100)]
patch 9.0.0394: Cygwin: multibyte characters may be broken in terminal window

Problem:    Cygwin: multibyte characters may be broken in terminal window.
Solution:   Adjust how to read and write on the channel. (Ken Takata,
            closes #11063)

2 years agopatch 9.0.0393: signals test often fails on FreeBSD v9.0.0393
K.Takata [Tue, 6 Sep 2022 09:56:19 +0000 (10:56 +0100)]
patch 9.0.0393: signals test often fails on FreeBSD

Problem:    Signals test often fails on FreeBSD.
Solution:   Use separate files for Suspend and Resume. (Ken Takata,
            closes #11065)

2 years agopatch 9.0.0392: inverted condition is a bit confusing v9.0.0392
K.Takata [Mon, 5 Sep 2022 20:45:11 +0000 (21:45 +0100)]
patch 9.0.0392: inverted condition is a bit confusing

Problem:    Inverted condition is a bit confusing.
Solution:   Remove the "!" and swap the blocks. (Ken Takata)

2 years agopatch 9.0.0391: using separate delete() call instead of writefile() 'D' flag v9.0.0391
Bram Moolenaar [Mon, 5 Sep 2022 20:40:44 +0000 (21:40 +0100)]
patch 9.0.0391: using separate delete() call instead of writefile() 'D' flag

Problem:    Using separate delete() call instead of writefile() 'D' flag.
Solution:   Use the writefile 'D' flag.

2 years agopatch 9.0.0390: cannot use a partial with :defer v9.0.0390
Bram Moolenaar [Mon, 5 Sep 2022 20:21:25 +0000 (21:21 +0100)]
patch 9.0.0390: cannot use a partial with :defer

Problem:    Cannot use a partial with :defer.
Solution:   Add the partial arguments before the other arguments.  Disallow
            using a dictionary.

2 years agopatch 9.0.0389: crash when 'tagfunc' closes the window v9.0.0389
Bram Moolenaar [Mon, 5 Sep 2022 18:51:13 +0000 (19:51 +0100)]
patch 9.0.0389: crash when 'tagfunc' closes the window

Problem:    Crash when 'tagfunc' closes the window.
Solution:   Bail out when the window was closed.

2 years agopatch 9.0.0388: the do_arg_all() function is too long v9.0.0388
Yegappan Lakshmanan [Mon, 5 Sep 2022 17:27:47 +0000 (18:27 +0100)]
patch 9.0.0388: the do_arg_all() function is too long

Problem:    The do_arg_all() function is too long.
Solution:   Split the function in smaller parts. (Yegappan Lakshmanan,
            closes #11062)

2 years agopatch 9.0.0387: repeat <ScriptCmd> mapping doesn't use right script context v9.0.0387
Bram Moolenaar [Mon, 5 Sep 2022 15:53:21 +0000 (16:53 +0100)]
patch 9.0.0387: repeat <ScriptCmd> mapping doesn't use right script context

Problem:    repeating a <ScriptCmd> mapping does not use the right script
            context.
Solution:   When using a mapping put <SID>{sid}; in the redo buffer.
            (closes #11049)

2 years agopatch 9.0.0386: some code blocks are nested too deep v9.0.0386
Yegappan Lakshmanan [Mon, 5 Sep 2022 13:33:47 +0000 (14:33 +0100)]
patch 9.0.0386: some code blocks are nested too deep

Problem:    Some code blocks are nested too deep.
Solution:   Bail out earlier. (Yegappan Lakshmanan, closes #11058)

2 years agopatch 9.0.0385: GUI: when CTRL-D is mapped in Insert mode it gets inserted v9.0.0385
zeertzjq [Mon, 5 Sep 2022 12:05:29 +0000 (13:05 +0100)]
patch 9.0.0385: GUI: when CTRL-D is mapped in Insert mode it gets inserted

Problem:    GUI: when CTRL-D is mapped in Insert mode it gets inserted.
            (Yasuhiro Matsumoto)
Solution:   Also recognize modifier starting with CSI. (closes #11057)

2 years agopatch 9.0.0384: Covertity still complains about using return value of getc() v9.0.0384
Bram Moolenaar [Mon, 5 Sep 2022 10:04:14 +0000 (11:04 +0100)]
patch 9.0.0384: Covertity still complains about using return value of getc()

Problem:    Covertity still complains about using return value of getc().
Solution:   Check for EOF.

2 years agopatch 9.0.0383: Coverity complains about unused value v9.0.0383
Bram Moolenaar [Mon, 5 Sep 2022 09:55:27 +0000 (10:55 +0100)]
patch 9.0.0383: Coverity complains about unused value

Problem:    Coverity complains about unused value.
Solution:   Use the value.

2 years agopatch 9.0.0382: freeing the wrong string on failure v9.0.0382
Bram Moolenaar [Mon, 5 Sep 2022 09:47:13 +0000 (10:47 +0100)]
patch 9.0.0382: freeing the wrong string on failure

Problem:    Freeing the wrong string on failure.
Solution:   Adjust the argument.  Reorder the code.

2 years agopatch 9.0.0381: writefile test leaves files behind v9.0.0381
Dominique Pelle [Sun, 4 Sep 2022 20:29:46 +0000 (21:29 +0100)]
patch 9.0.0381: writefile test leaves files behind

Problem:    Writefile test leaves files behind.
Solution:   Fix the file names of files to be deleted. (Dominique Pellé,
            closes #11056)

2 years agopatch 9.0.0380: deleting files in tests is a hassle
Bram Moolenaar [Sun, 4 Sep 2022 20:29:08 +0000 (21:29 +0100)]
patch 9.0.0380: deleting files in tests is a hassle

Problem:    Deleting files in tests is a hassle.
Solution:   Use the new 'D' flag of writefile().

2 years agoRevert part of patch merged twice
Bram Moolenaar [Sun, 4 Sep 2022 17:22:16 +0000 (18:22 +0100)]
Revert part of patch merged twice

2 years agopatch 9.0.0380: deleting files in tests is a hassle v9.0.0380
Bram Moolenaar [Sun, 4 Sep 2022 17:10:11 +0000 (18:10 +0100)]
patch 9.0.0380: deleting files in tests is a hassle

Problem:    Deleting files in tests is a hassle.
Solution:   Use the new 'D' flag of writefile().

2 years agoUpdate runtime files
Bram Moolenaar [Sun, 4 Sep 2022 16:45:43 +0000 (17:45 +0100)]
Update runtime files

2 years agopatch 9.0.0379: cleaning up after writefile() is a hassle v9.0.0379
Bram Moolenaar [Sun, 4 Sep 2022 14:40:36 +0000 (15:40 +0100)]
patch 9.0.0379: cleaning up after writefile() is a hassle

Problem:    Cleaning up after writefile() is a hassle.
Solution:   Add the 'D' flag to defer deleting the written file.  Very useful
            in tests.

2 years agopatch 9.0.0378: compiler warning for uninitialized variable v9.0.0378
Bram Moolenaar [Sun, 4 Sep 2022 12:45:15 +0000 (13:45 +0100)]
patch 9.0.0378: compiler warning for uninitialized variable

Problem:    Compiler warning for uninitialized variable. (Tony Mechelynck)
Solution:   Initialize it.

2 years agopatch 9.0.0377: argument assignment does not work v9.0.0377
Bram Moolenaar [Sun, 4 Sep 2022 12:41:37 +0000 (13:41 +0100)]
patch 9.0.0377: argument assignment does not work

Problem:    Argument assignment does not work.
Solution:   Skip over "=".

2 years agopatch 9.0.0376: clang warns for dead assignments v9.0.0376
Yegappan Lakshmanan [Sun, 4 Sep 2022 11:47:21 +0000 (12:47 +0100)]
patch 9.0.0376: clang warns for dead assignments

Problem:    Clang warns for dead assignments.
Solution:   Adjust the code. (Yegappan Lakshmanan, closes #11048)

2 years agopatch 9.0.0375: the footer feature is unused v9.0.0375
Bram Moolenaar [Sun, 4 Sep 2022 11:29:28 +0000 (12:29 +0100)]
patch 9.0.0375: the footer feature is unused

Problem:    The footer feature is unused.
Solution:   Remove FEAT_FOOTER and code.

2 years agopatch 9.0.0374: Coverity still complains about dropping sign of character v9.0.0374
Bram Moolenaar [Sun, 4 Sep 2022 10:55:19 +0000 (11:55 +0100)]
patch 9.0.0374: Coverity still complains about dropping sign of character

Problem:    Coverity still complains about dropping sign of character.
Solution:   Add intermediate variable.

2 years agopatch 9.0.0373: Coverity warns for NULL check and unused return value v9.0.0373
Bram Moolenaar [Sun, 4 Sep 2022 10:42:22 +0000 (11:42 +0100)]
patch 9.0.0373: Coverity warns for NULL check and unused return value

Problem:    Coverity warns for NULL check and unused return value.
Solution:   Remove the NULL check, it was already checked earlier.  Add (void)
            to ignore the return value.

2 years agopatch 9.0.0372: MS-Windows: "%T" time format does not appear to work v9.0.0372
Bram Moolenaar [Sat, 3 Sep 2022 21:08:11 +0000 (22:08 +0100)]
patch 9.0.0372: MS-Windows: "%T" time format does not appear to work

Problem:    MS-Windows: "%T" time format does not appear to work.
Solution:   Use "%H:%M:%S" instead.

2 years agopatch 9.0.0371: compiler warning for uninitialized variable v9.0.0371
Bram Moolenaar [Sat, 3 Sep 2022 20:53:28 +0000 (21:53 +0100)]
patch 9.0.0371: compiler warning for uninitialized variable

Problem:    Compiler warning for uninitialized variable.
Solution:   Initialize the variable. (John Marriott)

2 years agopatch 9.0.0370: cleaning up afterwards can make a function messy v9.0.0370
Bram Moolenaar [Sat, 3 Sep 2022 20:35:53 +0000 (21:35 +0100)]
patch 9.0.0370: cleaning up afterwards can make a function messy

Problem:    Cleaning up afterwards can make a function messy.
Solution:   Add the :defer command.

2 years agopatch 9.0.0369: a failing flaky test doesn't mention the time v9.0.0369
Bram Moolenaar [Sat, 3 Sep 2022 12:58:47 +0000 (13:58 +0100)]
patch 9.0.0369: a failing flaky test doesn't mention the time

Problem:    A failing flaky test doesn't mention the time.
Solution:   Add the time for debugging.  Improve error message.

2 years agopatch 9.0.0368: old Coverity warning for using NULL pointer v9.0.0368
Bram Moolenaar [Sat, 3 Sep 2022 11:59:19 +0000 (12:59 +0100)]
patch 9.0.0368: old Coverity warning for using NULL pointer

Problem:    Old Coverity warning for using NULL pointer.
Solution:   Bail out if dictionary allocation fails.

2 years agopatch 9.0.0367: Coverity complains about dropping sign of character v9.0.0367
Bram Moolenaar [Sat, 3 Sep 2022 11:53:20 +0000 (12:53 +0100)]
patch 9.0.0367: Coverity complains about dropping sign of character

Problem:    Coverity complains about dropping sign of character.
Solution:   Add explicit type cast.

2 years agopatch 9.0.0366: cannot use import->Func() in lambda v9.0.0366
Bram Moolenaar [Sat, 3 Sep 2022 11:09:07 +0000 (12:09 +0100)]
patch 9.0.0366: cannot use import->Func() in lambda

Problem:    Cannot use import->Func() in lambda. (Israel Chauca Fuentes)
Solution:   Adjust how an expression in a lambda is parsed. (closes #11042)

2 years agopatch 9.0.0365: file name used in test is unusual v9.0.0365
Dominique Pelle [Sat, 3 Sep 2022 09:59:32 +0000 (10:59 +0100)]
patch 9.0.0365: file name used in test is unusual

Problem:    File name used in test is unusual.
Solution:   Rename it. (Dominique Pellé, closes #11044)

2 years agopatch 9.0.0364: clang static analyzer gives warnings v9.0.0364
Yegappan Lakshmanan [Sat, 3 Sep 2022 09:52:24 +0000 (10:52 +0100)]
patch 9.0.0364: clang static analyzer gives warnings

Problem:    Clang static analyzer gives warnings.
Solution:   Avoid the warnings. (Yegappan Lakshmanan, closes #11043)

2 years agopatch 9.0.0363: common names in test files causes tests to be flaky v9.0.0363
Bram Moolenaar [Fri, 2 Sep 2022 20:55:50 +0000 (21:55 +0100)]
patch 9.0.0363: common names in test files causes tests to be flaky

Problem:    Common names in test files causes tests to be flaky.
Solution:   Use more specific names.

2 years agopatch 9.0.0362: expanding ":e %" does not work for remote files v9.0.0362
Bram Moolenaar [Fri, 2 Sep 2022 18:45:15 +0000 (19:45 +0100)]
patch 9.0.0362: expanding ":e %" does not work for remote files

Problem:    Expanding ":e %" does not work for remote files.
Solution:   If the "%" or "#" file does not exist add the expansion anyway.

2 years agopatch 9.0.0361: removing a listener may result in a memory leak v9.0.0361
Yegappan Lakshmanan [Fri, 2 Sep 2022 16:12:07 +0000 (17:12 +0100)]
patch 9.0.0361: removing a listener may result in a memory leak

Problem:    Removing a listener may result in a memory leak and remove
            subsequent listerns.
Solution:   Init the "prev" pointer only once. (Yegappan Lakshmanan,
            closes #11039)

2 years agopatch 9.0.0360: crash when invalid line number on :for is ignored v9.0.0360
Bram Moolenaar [Fri, 2 Sep 2022 15:47:16 +0000 (16:47 +0100)]
patch 9.0.0360: crash when invalid line number on :for is ignored

Problem:    Crash when invalid line number on :for is ignored.
Solution:   Do not check breakpoint for non-existing line.

2 years agopatch 9.0.0359: error message for wrong argument type is not specific v9.0.0359
Yegappan Lakshmanan [Fri, 2 Sep 2022 14:15:27 +0000 (15:15 +0100)]
patch 9.0.0359: error message for wrong argument type is not specific

Problem:    Error message for wrong argument type is not specific.
Solution:   Include more information in the error. (Yegappan Lakshmanan,
            closes #11037)

2 years agopatch 9.0.0358: 'breakindent' does not indent non-lists v9.0.0358
Maxim Kim [Fri, 2 Sep 2022 13:08:53 +0000 (14:08 +0100)]
patch 9.0.0358: 'breakindent' does not indent non-lists

Problem:    'breakindent' does not indent non-lists with
            "breakindentopt=list:-1".
Solution:   Adjust indent computation. (Maxim Kim, closes #11038)

2 years agopatch 9.0.0357: 'linebreak' interferes with text property highlight v9.0.0357
Bram Moolenaar [Fri, 2 Sep 2022 12:26:29 +0000 (13:26 +0100)]
patch 9.0.0357: 'linebreak' interferes with text property highlight

Problem:    'linebreak' interferes with text property highlight if there is
            syntax highlighting.
Solution:   Check the text prop attributes after combining with syntax
            attributes. (closes #11035)

2 years agopatch 9.0.0356: :echowindow sets the in_echowindow flag too early v9.0.0356
Yasuhiro Matsumoto [Fri, 2 Sep 2022 11:16:21 +0000 (12:16 +0100)]
patch 9.0.0356: :echowindow sets the in_echowindow flag too early

Problem:    :echowindow sets the in_echowindow flag too early.
Solution:   Set in_echowindow only when outputting the text. (Yasuhiro
            Matsumoto, closes #11033)