]> granicus.if.org Git - vim/log
vim
2 years agopatch 8.2.4945: inconsistent use of white space v8.2.4945
Bram Moolenaar [Thu, 12 May 2022 19:35:35 +0000 (20:35 +0100)]
patch 8.2.4945: inconsistent use of white space

Problem:    Inconsistent use of white space.
Solution:   Use Tabs and Spaces consistently.

2 years agoUpdate runtime files and translations
Bram Moolenaar [Thu, 12 May 2022 19:34:15 +0000 (20:34 +0100)]
Update runtime files and translations

2 years agopatch 8.2.4944: text properties are wrong after "cc" v8.2.4944
LemonBoy [Thu, 12 May 2022 17:45:18 +0000 (18:45 +0100)]
patch 8.2.4944: text properties are wrong after "cc"

Problem:    Text properties are wrong after "cc". (Axel Forsman)
Solution:   Pass the deleted byte count to inserted_bytes(). (closes #10412,
            closes #7737, closes #5763)

2 years agopatch 8.2.4943: changing 'switchbuf' may have no effect v8.2.4943
Sean Dewar [Thu, 12 May 2022 16:44:29 +0000 (17:44 +0100)]
patch 8.2.4943: changing 'switchbuf' may have no effect

Problem:    Changing 'switchbuf' may have no effect.
Solution:   Handle 'switchbuf' in didset_string_options(). (Sean Dewar,
            closes #10406)

2 years agopatch 8.2.4942: error when setting 'filetype' in help file again v8.2.4942
Bram Moolenaar [Thu, 12 May 2022 16:24:49 +0000 (17:24 +0100)]
patch 8.2.4942: error when setting 'filetype' in help file again

Problem:    Error when setting 'filetype' in help file again.
Solution:   Deal with text property type already existing. (closes #10409)

2 years agopatch 8.2.4941: '[ and '] marks may be wrong after undo v8.2.4941
LemonBoy [Thu, 12 May 2022 14:39:31 +0000 (15:39 +0100)]
patch 8.2.4941: '[ and '] marks may be wrong after undo

Problem:    '[ and '] marks may be wrong after undo.
Solution:   Adjust the '[ and '] marks if needed. (closes #10407, closes #1281)

2 years agopatch 8.2.4940: some code is never used v8.2.4940
Bram Moolenaar [Thu, 12 May 2022 10:05:40 +0000 (11:05 +0100)]
patch 8.2.4940: some code is never used

Problem:    Some code is never used.
Solution:   Remove dead code.  Add a few more test cases.

2 years agopatch 8.2.4939: matchfuzzypos() with "matchseq" does not have all positions v8.2.4939
zeertzjq [Wed, 11 May 2022 13:15:37 +0000 (14:15 +0100)]
patch 8.2.4939: matchfuzzypos() with "matchseq" does not have all positions

Problem:    matchfuzzypos() with "matchseq" does not have all positions.
Solution:   Also add a position for white space. (closes #10404)

2 years agopatch 8.2.4938: crash when matching buffer with invalid pattern v8.2.4938
Bram Moolenaar [Wed, 11 May 2022 10:42:28 +0000 (11:42 +0100)]
patch 8.2.4938: crash when matching buffer with invalid pattern

Problem:    Crash when matching buffer with invalid pattern.
Solution:   Check for NULL regprog.

2 years agopatch 8.2.4937: no test for what 8.2.4931 fixes v8.2.4937
Bram Moolenaar [Tue, 10 May 2022 20:11:12 +0000 (21:11 +0100)]
patch 8.2.4937: no test for what 8.2.4931 fixes

Problem:    No test for what 8.2.4931 fixes.
Solution:   Add a test that triggers a valgrind error.

2 years agopatch 8.2.4936: MS-Windows: mouse coordinates for scroll event are wrong v8.2.4936
LemonBoy [Tue, 10 May 2022 19:54:46 +0000 (20:54 +0100)]
patch 8.2.4936: MS-Windows: mouse coordinates for scroll event are wrong

Problem:    MS-Windows: mouse coordinates for scroll event are wrong.
Solution:   Convert coordinates to the text area coordinates. (closes #10400)

2 years agopatch 8.2.4935: with 'foldmethod' "indent" some lines not included in fold v8.2.4935
Brandon Simmons [Tue, 10 May 2022 18:13:23 +0000 (19:13 +0100)]
patch 8.2.4935: with 'foldmethod' "indent" some lines not included in fold

Problem:    With 'foldmethod' "indent" some lines are not included in the
            fold. (Oleg Koshovetc)
Solution:   Fix it. (Brandon Simmons, closes #10399, closes #3214)

2 years agopatch 8.2.4934: string interpolation fails when not evaluating v8.2.4934
Bram Moolenaar [Tue, 10 May 2022 17:11:43 +0000 (18:11 +0100)]
patch 8.2.4934: string interpolation fails when not evaluating

Problem:    String interpolation fails when not evaluating.
Solution:   Skip the expression when not evaluating. (closes #10398)

2 years agopatch 8.2.4933: a few more capitalization mistakes in error messages v8.2.4933
Bram Moolenaar [Tue, 10 May 2022 16:51:55 +0000 (17:51 +0100)]
patch 8.2.4933: a few more capitalization mistakes in error messages

Problem:    A few more capitalization mistakes in error messages.
Solution:   Adjust capitalization. (Doug Kearns)

2 years agopatch 8.2.4932: not easy to filter the output of maplist() v8.2.4932
Ernie Rael [Tue, 10 May 2022 16:50:39 +0000 (17:50 +0100)]
patch 8.2.4932: not easy to filter the output of maplist()

Problem:    Not easy to filter the output of maplist().
Solution:   Add mode_bits to the dictionary. (Ernie Rael, closes #10356)

2 years agopatch 8.2.4931: Crash with sequence of Perl commands v8.2.4931
Bram Moolenaar [Tue, 10 May 2022 12:32:24 +0000 (13:32 +0100)]
patch 8.2.4931: Crash with sequence of Perl commands

Problem:    Crash with sequence of Perl commands.
Solution:   Move PUTBACK to another line. (closes #10386)

2 years agopatch 8.2.4930: interpolated string expression requires escaping v8.2.4930
Bram Moolenaar [Tue, 10 May 2022 12:24:30 +0000 (13:24 +0100)]
patch 8.2.4930: interpolated string expression requires escaping

Problem:    Interpolated string expression requires escaping.
Solution:   Do not require escaping in the expression.

2 years agopatch 8.2.4929: off-by-one error in in statusline item v8.2.4929
LemonBoy [Mon, 9 May 2022 20:03:47 +0000 (21:03 +0100)]
patch 8.2.4929: off-by-one error in in statusline item

Problem:    Off-by-one error in in statusline item.
Solution:   Subtrace one less. (closes #10394, closes #5599)

2 years agopatch 8.2.4928: various white space and cosmetic mistakes v8.2.4928
Bram Moolenaar [Mon, 9 May 2022 19:09:23 +0000 (20:09 +0100)]
patch 8.2.4928: various white space and cosmetic mistakes

Problem:    Various white space and cosmetic mistakes.
Solution:   Change spaces to tabs, improve comments.

2 years agoUpdate runtime files, translations
Bram Moolenaar [Mon, 9 May 2022 18:50:35 +0000 (19:50 +0100)]
Update runtime files, translations

2 years agopatch 8.2.4927: return type of remove() incorrect when using three arguments v8.2.4927
Bram Moolenaar [Mon, 9 May 2022 13:12:14 +0000 (14:12 +0100)]
patch 8.2.4927: return type of remove() incorrect when using three arguments

Problem:    Return type of remove() incorrect when using three arguments.
Solution:   Use first argument type when there are three arguments.
            (closes #10387)

2 years agopatch 8.2.4926: #ifdef for crypt feature around too many lines v8.2.4926
zeertzjq [Mon, 9 May 2022 12:33:39 +0000 (13:33 +0100)]
patch 8.2.4926: #ifdef for crypt feature around too many lines

Problem:    #ifdef for crypt feature around too many lines.
Solution:   Move code outside of #ifdef. (closes #10388)

2 years agopatch 8.2.4925: trailing backslash may cause reading past end of line v8.2.4925
Bram Moolenaar [Mon, 9 May 2022 12:15:07 +0000 (13:15 +0100)]
patch 8.2.4925: trailing backslash may cause reading past end of line

Problem:    Trailing backslash may cause reading past end of line.
Solution:   Check for NUL after backslash.

2 years agopatch 8.2.4924: maparg() may return a string that cannot be reused v8.2.4924
zeertzjq [Mon, 9 May 2022 11:16:19 +0000 (12:16 +0100)]
patch 8.2.4924: maparg() may return a string that cannot be reused

Problem:    maparg() may return a string that cannot be reused.
Solution:   use msg_outtrans_special() instead of str2special().
            (closes #10384)

2 years agopatch 8.2.4923: test checks for terminal feature unnecessarily v8.2.4923
zeertzjq [Mon, 9 May 2022 10:03:19 +0000 (11:03 +0100)]
patch 8.2.4923: test checks for terminal feature unnecessarily

Problem:    Test checks for terminal feature unnecessarily.
Solution:   Remove CheckRunVimInTerminal. (closes #10383)

2 years agopatch 8.2.4922: mouse test fails on MS-Windows v8.2.4922
Bram Moolenaar [Sun, 8 May 2022 21:49:43 +0000 (22:49 +0100)]
patch 8.2.4922: mouse test fails on MS-Windows

Problem:    Mouse test fails on MS-Windows.
Solution:   Set 'mousemodel' to "extend".

2 years agopatch 8.2.4921: spell test fails because of new illegal byte check v8.2.4921
Bram Moolenaar [Sun, 8 May 2022 21:43:51 +0000 (22:43 +0100)]
patch 8.2.4921: spell test fails because of new illegal byte check

Problem:    Spell test fails because of new illegal byte check.
Solution:   Remove the test.

2 years agopatch 8.2.4920: MS-Windows GUI: unused variables v8.2.4920
Bram Moolenaar [Sun, 8 May 2022 21:37:45 +0000 (22:37 +0100)]
patch 8.2.4920: MS-Windows GUI: unused variables

Problem:    MS-Windows GUI: unused variables.
Solution:   Delete the variables. (John Marriott)

2 years agopatch 8.2.4919: can add invalid bytes with :spellgood v8.2.4919
Bram Moolenaar [Sun, 8 May 2022 21:32:58 +0000 (22:32 +0100)]
patch 8.2.4919: can add invalid bytes with :spellgood

Problem:    Can add invalid bytes with :spellgood.
Solution:   Check for a valid word string.

2 years agopatch 8.2.4918: conceal character from matchadd() displayed too many times v8.2.4918
LemonBoy [Sun, 8 May 2022 20:25:20 +0000 (21:25 +0100)]
patch 8.2.4918: conceal character from matchadd() displayed too many times

Problem:    Conceal character from matchadd() displayed too many times.
Solution:   Check the syntax flag. (closes #10381, closes #7268)

2 years agopatch 8.2.4917: fuzzy expansion of option names is not right v8.2.4917
Christian Brabandt [Sun, 8 May 2022 20:10:56 +0000 (21:10 +0100)]
patch 8.2.4917: fuzzy expansion of option names is not right

Problem:    Fuzzy expansion of option names is not right.
Solution:   Pass the fuzzy flag down the call chain. (Christian Brabandt,
            closes #10380, closes #10318)

2 years agopatch 8.2.4916: mouse in Insert mode test fails v8.2.4916
Bram Moolenaar [Sun, 8 May 2022 19:38:06 +0000 (20:38 +0100)]
patch 8.2.4916: mouse in Insert mode test fails

Problem:    Mouse in Insert mode test fails.
Solution:   Fix the text and check relevant positions.

2 years agopatch 8.2.4915: sometimes the cursor is in the wrong position v8.2.4915
Bram Moolenaar [Sun, 8 May 2022 18:39:31 +0000 (19:39 +0100)]
patch 8.2.4915: sometimes the cursor is in the wrong position

Problem:    Sometimes the cursor is in the wrong position.
Solution:   When the cursor moved to another line, recompute w_botline.
            (closes #9736)

2 years agopatch 8.2.4914: string interpolation in :def function may fail v8.2.4914
Bram Moolenaar [Sun, 8 May 2022 15:37:07 +0000 (16:37 +0100)]
patch 8.2.4914: string interpolation in :def function may fail

Problem:    String interpolation in :def function may fail.
Solution:   Do not terminate the expression. (closes #10377)

2 years agopatch 8.2.4913: popup_hide() does not always have effect v8.2.4913
Bram Moolenaar [Sun, 8 May 2022 14:00:04 +0000 (15:00 +0100)]
patch 8.2.4913: popup_hide() does not always have effect

Problem:    Popup_hide() does not always have effect.
Solution:   Add the POPF_HIDDEN_FORCE flag. (closes #10376)

2 years agoUpdate runtime files
Bram Moolenaar [Sat, 7 May 2022 20:54:03 +0000 (21:54 +0100)]
Update runtime files

2 years agopatch 8.2.4912: using execute() to define a lambda doesn't work v8.2.4912
Bram Moolenaar [Sat, 7 May 2022 20:14:05 +0000 (21:14 +0100)]
patch 8.2.4912: using execute() to define a lambda doesn't work

Problem:    Using execute() to define a lambda doesn't work. (Ernie Rael)
Solution:   Put the getline function in evalarg. (closes #10375)

2 years agopatch 8.2.4911: the mode #defines are not clearly named v8.2.4911
Bram Moolenaar [Sat, 7 May 2022 19:01:16 +0000 (20:01 +0100)]
patch 8.2.4911: the mode #defines are not clearly named

Problem:    The mode #defines are not clearly named.
Solution:   Prepend MODE_.  Renumber them to put the mapped modes first.

2 years agopatch 8.2.4910: imperfect coding v8.2.4910
Bram Moolenaar [Sat, 7 May 2022 16:45:16 +0000 (17:45 +0100)]
patch 8.2.4910: imperfect coding

Problem:    Imperfect coding.
Solution:   Make code nicer.

2 years agopatch 8.2.4909: MODE_ enum entries names are too generic v8.2.4909
Bram Moolenaar [Sat, 7 May 2022 15:38:24 +0000 (16:38 +0100)]
patch 8.2.4909: MODE_ enum entries names are too generic

Problem:    MODE_ enum entries names are too generic.
Solution:   use CH_MODE_.

2 years agopatch 8.2.4908: no text formatting for // comment after a statement v8.2.4908
Bram Moolenaar [Sat, 7 May 2022 14:43:52 +0000 (15:43 +0100)]
patch 8.2.4908: no text formatting for // comment after a statement

Problem:    No text formatting for // comment after a statement.
Solution:   format a comment when the 'c' flag is in 'formatoptions'.

2 years agopatch 8.2.4907: some users do not want a line comment always inserted v8.2.4907
Bram Moolenaar [Sat, 7 May 2022 13:54:11 +0000 (14:54 +0100)]
patch 8.2.4907: some users do not want a line comment always inserted

Problem:    Some users do not want a line comment always inserted.
Solution:   Add the '/' flag to 'formatoptions' to not repeat the comment
            leader after a statement when using "o".

2 years agopatch 8.2.4906: MS-Windows: cannot use transparent background v8.2.4906
Yasuhiro Matsumoto [Sat, 7 May 2022 13:09:19 +0000 (14:09 +0100)]
patch 8.2.4906: MS-Windows: cannot use transparent background

Problem:    MS-Windows: cannot use transparent background.
Solution:   Make transparent background work with 'termguicolors' and NONE
            background color. (Yasuhiro Matsumoto, closes #10310, closes #7162)

2 years agopatch 8.2.4905: codecov includes MS-Windows install header file v8.2.4905
Bram Moolenaar [Sat, 7 May 2022 12:25:37 +0000 (13:25 +0100)]
patch 8.2.4905: codecov includes MS-Windows install header file

Problem:    codecov includes MS-Windows install header file.
Solution:   Ignore dosinst.h.

2 years agopatch 8.2.4904: codecov includes MS-Windows install files v8.2.4904
Bram Moolenaar [Sat, 7 May 2022 12:00:42 +0000 (13:00 +0100)]
patch 8.2.4904: codecov includes MS-Windows install files

Problem:    codecov includes MS-Windows install files.
Solution:   Ignore dosinst.c and uninstall.c.

2 years agopatch 8.2.4903: cannot get the current cmdline completion type and position v8.2.4903
Shougo Matsushita [Sat, 7 May 2022 11:48:29 +0000 (12:48 +0100)]
patch 8.2.4903: cannot get the current cmdline completion type and position

Problem:    Cannot get the current cmdline completion type and position.
Solution:   Add getcmdcompltype() and getcmdscreenpos(). (Shougo Matsushita,
            closes #10344)

2 years agopatch 8.2.4902: mouse wheel scrolling is inconsistent v8.2.4902
LemonBoy [Sat, 7 May 2022 11:25:40 +0000 (12:25 +0100)]
patch 8.2.4902: mouse wheel scrolling is inconsistent

Problem:    Mouse wheel scrolling is inconsistent.
Solution:   Use the MS-Winows system setting. (closes #10368)

2 years agopatch 8.2.4901: NULL pointer access when using invalid pattern v8.2.4901
Bram Moolenaar [Sat, 7 May 2022 10:28:06 +0000 (11:28 +0100)]
patch 8.2.4901: NULL pointer access when using invalid pattern

Problem:    NULL pointer access when using invalid pattern.
Solution:   Check for failed regexp program.

2 years agopatch 8.2.4900: Vim9 expression test fails without the job feature v8.2.4900
Dominique Pelle [Sat, 7 May 2022 10:00:08 +0000 (11:00 +0100)]
patch 8.2.4900: Vim9 expression test fails without the job feature

Problem:    Vim9 expression test fails without the job feature.
Solution:   Add a check for the job feature. (Dominique PellĂ©, closes #10373)

2 years agopatch 8.2.4899: with latin1 encoding CTRL-W might go before the cmdline v8.2.4899
Bram Moolenaar [Sat, 7 May 2022 09:49:10 +0000 (10:49 +0100)]
patch 8.2.4899: with latin1 encoding CTRL-W might go before the cmdline

Problem:    With latin1 encoding CTRL-W might go before the start of the
            command line.
Solution:   Check already being at the start of the command line.

2 years agopatch 8.2.4898: Coverity complains about pointer usage v8.2.4898
Bram Moolenaar [Sat, 7 May 2022 09:03:27 +0000 (10:03 +0100)]
patch 8.2.4898: Coverity complains about pointer usage

Problem:    Coverity complains about pointer usage.
Solution:   Move code for increment/decerment.

2 years agopatch 8.2.4897: comment inside an expression in lambda ignores the rest v8.2.4897
Bram Moolenaar [Fri, 6 May 2022 20:51:50 +0000 (21:51 +0100)]
patch 8.2.4897: comment inside an expression in lambda ignores the rest

Problem:    Comment inside an expression in lambda ignores the rest of the
            expression.
Solution:   Truncate the line at the comment. (closes #10367)

2 years agopatch 8.2.4896: expression in command block does not look after NL v8.2.4896
Bram Moolenaar [Fri, 6 May 2022 20:24:31 +0000 (21:24 +0100)]
patch 8.2.4896: expression in command block does not look after NL

Problem:    Expression in command block does not look after NL when command is
            typed.
Solution:   Skip over NL also when not in a script. (closes #10358)

2 years agopatch 8.2.4895: buffer overflow with invalid command with composing chars v8.2.4895
Bram Moolenaar [Fri, 6 May 2022 19:38:47 +0000 (20:38 +0100)]
patch 8.2.4895: buffer overflow with invalid command with composing chars

Problem:    Buffer overflow with invalid command with composing chars.
Solution:   Check that the whole character fits in the buffer.

2 years agopatch 8.2.4894: MS-Windows: not using italics v8.2.4894
LemonBoy [Fri, 6 May 2022 17:38:41 +0000 (18:38 +0100)]
patch 8.2.4894: MS-Windows: not using italics

Problem:    MS-Windows: not using italics.
Solution:   Use italics.  Simplify the code. (closes #10359)

2 years agopatch 8.2.4893: distributed import files are not installed v8.2.4893
Bram Moolenaar [Fri, 6 May 2022 17:08:52 +0000 (18:08 +0100)]
patch 8.2.4893: distributed import files are not installed

Problem:    Distributed import files are not installed.
Solution:   Add rules to Makefile and NSIS.

2 years agopatch 8.2.4892: test failures because of changed error messages v8.2.4892
Bram Moolenaar [Fri, 6 May 2022 16:53:06 +0000 (17:53 +0100)]
patch 8.2.4892: test failures because of changed error messages

Problem:    Test failures because of changed error messages.
Solution:   Adjust the exptected error messages.

2 years agopatch 8.2.4891: Vim help presentation could be better v8.2.4891
Bram Moolenaar [Fri, 6 May 2022 15:32:46 +0000 (16:32 +0100)]
patch 8.2.4891: Vim help presentation could be better

Problem:    Vim help presentation could be better.
Solution:   Add an imported file for extra Vim help support.  Show highlight
            names in the color they have.

2 years agopatch 8.2.4890: inconsistent capitalization in error messages v8.2.4890
Bram Moolenaar [Fri, 6 May 2022 15:18:41 +0000 (16:18 +0100)]
patch 8.2.4890: inconsistent capitalization in error messages

Problem:    Inconsistent capitalization in error messages.
Solution:   Make capitalization consistent. (Doug Kearns)

2 years agopatch 8.2.4889: CI only tests with FreeBSD 12 v8.2.4889
Philip H [Fri, 6 May 2022 15:10:50 +0000 (16:10 +0100)]
patch 8.2.4889: CI only tests with FreeBSD 12

Problem:    CI only tests with FreeBSD 12.
Solution:   Also test with FreeBSD 13. (closes #10366)

2 years agopatch 8.2.4888: line number of lambda ignores line continuation v8.2.4888
Bram Moolenaar [Fri, 6 May 2022 14:47:07 +0000 (15:47 +0100)]
patch 8.2.4888: line number of lambda ignores line continuation

Problem:    Line number of lambda ignores line continuation.
Solution:   Use the line number of where the arguments are. Avoid outputting
            "..." twice. (closes #10364)

2 years agopatch 8.2.4887: channel log does not show invoking a timer callback v8.2.4887
Bram Moolenaar [Fri, 6 May 2022 13:59:04 +0000 (14:59 +0100)]
patch 8.2.4887: channel log does not show invoking a timer callback

Problem:    Channel log does not show invoking a timer callback.
Solution:   Add a ch_log() call.

2 years agopatch 8.2.4886: Vim9: redir in skipped block seen as assignment v8.2.4886
Bram Moolenaar [Fri, 6 May 2022 13:29:09 +0000 (14:29 +0100)]
patch 8.2.4886: Vim9: redir in skipped block seen as assignment

Problem:    Vim9: redir in skipped block seen as assignment.
Solution:   Check for valid assignment.

2 years agopatch 8.2.4885: test fails with the job/channel feature v8.2.4885
Bram Moolenaar [Fri, 6 May 2022 12:37:42 +0000 (13:37 +0100)]
patch 8.2.4885: test fails with the job/channel feature

Problem:    Test fails with the job/channel feature.
Solution:   Move check for job/channel separately.

2 years agopatch 8.2.4884: test fails without the job/channel feature v8.2.4884
Bram Moolenaar [Fri, 6 May 2022 12:27:08 +0000 (13:27 +0100)]
patch 8.2.4884: test fails without the job/channel feature

Problem:    Test fails without the job/channel feature. (Dominique PellĂ©)
Solution:   Add condition.

2 years agopatch 8.2.4883: string interpolation only works in heredoc v8.2.4883
LemonBoy [Fri, 6 May 2022 12:14:50 +0000 (13:14 +0100)]
patch 8.2.4883: string interpolation only works in heredoc

Problem:    String interpolation only works in heredoc.
Solution:   Support interpolated strings.  Use syntax for heredoc consistent
            with strings, similar to C#. (closes #10327)

2 years agopatch 8.2.4882: cannot make 'breakindent' use a specific column v8.2.4882
Christian Brabandt [Fri, 6 May 2022 11:21:04 +0000 (12:21 +0100)]
patch 8.2.4882: cannot make 'breakindent' use a specific column

Problem:    Cannot make 'breakindent' use a specific column.
Solution:   Add the "column" entry in 'breakindentopt'. (Christian Brabandt,
            closes #10362, closes #10325)

2 years agopatch 8.2.4881: "P" in Visual mode still changes some registers v8.2.4881
Shougo Matsushita [Fri, 6 May 2022 10:45:09 +0000 (11:45 +0100)]
patch 8.2.4881: "P" in Visual mode still changes some registers

Problem:    "P" in Visual mode still changes some registers.
Solution:   Make "P" in Visual mode not change any register. (Shougo
            Matsushita, closes #10349)

2 years agopatch 8.2.4880: Vim9: misplaced elseif causes invalid memory access v8.2.4880
Bram Moolenaar [Fri, 6 May 2022 10:27:52 +0000 (11:27 +0100)]
patch 8.2.4880: Vim9: misplaced elseif causes invalid memory access

Problem:    Vim9: misplaced elseif causes invalid memory access.
Solution:   Check cs_idx not to be negative.

2 years agopatch 8.2.4879: screendump test may fail when using valgrind v8.2.4879
Bram Moolenaar [Fri, 6 May 2022 10:21:19 +0000 (11:21 +0100)]
patch 8.2.4879: screendump test may fail when using valgrind

Problem:    Screendump test may fail when using valgrind.
Solution:   Wait longer for the first screendump.

2 years agopatch 8.2.4878: valgrind warning for using uninitialized variable v8.2.4878
Bram Moolenaar [Fri, 6 May 2022 10:02:05 +0000 (11:02 +0100)]
patch 8.2.4878: valgrind warning for using uninitialized variable

Problem:    Valgrind warning for using uninitialized variable.
Solution:   Initialize the type of newtv.

2 years agopatch 8.2.4877: MS-Windows: Wrongly using Normal colors for termguicolors v8.2.4877
Christian Brabandt [Thu, 5 May 2022 20:09:54 +0000 (21:09 +0100)]
patch 8.2.4877: MS-Windows: Wrongly using Normal colors for termguicolors

Problem:    MS-Windows: Using Normal colors for termguicolors causes problems.
Solution:   Do not use Normal colors to set sg_gui_fg and sg_gui_bg.
            (Christian Brabandt, closes #10317, closes #10241)

2 years agopatch 8.2.4876: MS-Windows: Shift-BS results in strange char in powershell v8.2.4876
Christian Brabandt [Thu, 5 May 2022 19:46:47 +0000 (20:46 +0100)]
patch 8.2.4876: MS-Windows: Shift-BS results in strange char in powershell

Problem:    MS-Windows: Shift-BS results in strange character in powershell.
Solution:   Add K_S_BS. (Christian Brabandt, closes #10283, closes #10279)

2 years agopatch 8.2.4875: MS-Windows: some .exe files are not recognized v8.2.4875
LemonBoy [Thu, 5 May 2022 19:18:16 +0000 (20:18 +0100)]
patch 8.2.4875: MS-Windows: some .exe files are not recognized

Problem:    MS-Windows: some .exe files are not recognized.
Solution:   Parse APPEXECLINK junctions. (closes #10302)

2 years agopatch 8.2.4874: Win32 GUI: horizontal scroll wheel not handled properly v8.2.4874
LemonBoy [Thu, 5 May 2022 18:23:07 +0000 (19:23 +0100)]
patch 8.2.4874: Win32 GUI: horizontal scroll wheel not handled properly

Problem:    Win32 GUI: horizontal scroll wheel not handled properly.
Solution:   Also handle WM_MOUSEHWHEEL. (closes #10309)

2 years agopatch 8.2.4873: Vim9: using "else" differs from using "endif/if !cond" v8.2.4873
Bram Moolenaar [Thu, 5 May 2022 16:02:46 +0000 (17:02 +0100)]
patch 8.2.4873: Vim9: using "else" differs from using "endif/if !cond"

Problem:    Vim9: using "else" differs from using "endif/if !cond".
Solution:   Leave the block and enter another one. (closes #10320)

2 years agopatch 8.2.4872: Vim9: no error for using an expression only v8.2.4872
Bram Moolenaar [Thu, 5 May 2022 15:08:55 +0000 (16:08 +0100)]
patch 8.2.4872: Vim9: no error for using an expression only

Problem:    Vim9: no error for using an expression only at the script level
            when followed by an empty line.
Solution:   Do not check the line number but whether something follows.
            (closes #10357)

2 years agopatch 8.2.4871: Vim9: in :def function no error for misplaced range v8.2.4871
Bram Moolenaar [Thu, 5 May 2022 14:20:03 +0000 (15:20 +0100)]
patch 8.2.4871: Vim9: in :def function no error for misplaced range

Problem:    Vim9: in :def function no error for using a range with a command
            that does not accept one.
Solution:   Check for the command to accept a range. (closes #10330)

2 years agopatch 8.2.4870: Vim9: expression in :substitute is not compiled v8.2.4870
LemonBoy [Thu, 5 May 2022 12:53:03 +0000 (13:53 +0100)]
patch 8.2.4870: Vim9: expression in :substitute is not compiled

Problem:    Vim9: expression in :substitute is not compiled.
Solution:   Use an INSTR instruction if possible. (closes #10334)

2 years agopatch 8.2.4869: expression in command block does not look after NL v8.2.4869
Bram Moolenaar [Thu, 5 May 2022 11:20:28 +0000 (12:20 +0100)]
patch 8.2.4869: expression in command block does not look after NL

Problem:    Expression in command block does not look after NL.
Solution:   Skip over NL to check what follows. (closes #10358)

2 years agopatch 8.2.4868: when closing help window autocmds triggered for wrong window v8.2.4868
LemonBoy [Wed, 4 May 2022 21:13:47 +0000 (22:13 +0100)]
patch 8.2.4868: when closing help window autocmds triggered for wrong window

Problem:    When closing help window autocmds triggered for the wrong window.
Solution:   Figure out the new current window earlier. (closes #10348)

2 years agopatch 8.2.4867: listing of mapping with K_SPECIAL is wrong v8.2.4867
zeertzjq [Wed, 4 May 2022 17:51:43 +0000 (18:51 +0100)]
patch 8.2.4867: listing of mapping with K_SPECIAL is wrong

Problem:    Listing of mapping with K_SPECIAL is wrong.
Solution:   Adjust escaping of special characters. (closes #10351)

2 years agopatch 8.2.4866: duplicate code in "get" functions v8.2.4866
LemonBoy [Wed, 4 May 2022 17:12:55 +0000 (18:12 +0100)]
patch 8.2.4866: duplicate code in "get" functions

Problem:    Duplicate code in "get" functions.
Solution:   Use get_var_from() for getwinvar(), gettabvar(), gettabwinvar()
            and getbufvar(). (closes #10335)

2 years agopatch 8.2.4865: :startinsert right after :stopinsert may not work v8.2.4865
zeertzjq [Wed, 4 May 2022 16:51:50 +0000 (17:51 +0100)]
patch 8.2.4865: :startinsert right after :stopinsert may not work

Problem:    :startinsert right after :stopinsert does not work when popup menu
            is still visible.
Solution:   Use ins_compl_active() instead of pum_visible(). (closes #10352)

2 years agopatch 8.2.4864: Vim9: script test fails v8.2.4864
Bram Moolenaar [Wed, 4 May 2022 16:29:15 +0000 (17:29 +0100)]
patch 8.2.4864: Vim9: script test fails

Problem:    Vim9: script test fails.
Solution:   Remove "if" around declaration.

2 years agopatch 8.2.4863: accessing freed memory in test without the +channel feature v8.2.4863
Bram Moolenaar [Wed, 4 May 2022 15:46:54 +0000 (16:46 +0100)]
patch 8.2.4863: accessing freed memory in test without the +channel feature

Problem:    Accessing freed memory in test without the +channel feature.
            (Dominique PellĂ©)
Solution:   Do not generted PUSHCHANNEL or PUSHJOB if they are not
            implemented. (closes #10350)

2 years agopatch 8.2.4862: Vim9: test may fail when run with valgrind v8.2.4862
Bram Moolenaar [Wed, 4 May 2022 15:24:57 +0000 (16:24 +0100)]
patch 8.2.4862: Vim9: test may fail when run with valgrind

Problem:    Vim9: test may fail when run with valgrind.
Solution:   Wait longer for callback if needed.

2 years agopatch 8.2.4861: it is not easy to restore saved mappings v8.2.4861
Ernie Rael [Wed, 4 May 2022 14:40:22 +0000 (15:40 +0100)]
patch 8.2.4861: it is not easy to restore saved mappings

Problem:    It is not easy to restore saved mappings.
Solution:   Make mapset() accept a dict argument. (Ernie Rael, closes #10295)

2 years agopatch 8.2.4860: MS-Windows: always uses current directory for executables v8.2.4860
Yasuhiro Matsumoto [Tue, 3 May 2022 10:02:28 +0000 (11:02 +0100)]
patch 8.2.4860: MS-Windows: always uses current directory for executables

Problem:    MS-Windows: always uses current directory for executables.
Solution:   Check the NoDefaultCurrentDirectoryInExePath environment variable.
            (Yasuhiro Matsumoto, closes #10341)

2 years agopatch 8.2.4859: wget2 files are not recognized v8.2.4859
Bram Moolenaar [Mon, 2 May 2022 22:51:13 +0000 (23:51 +0100)]
patch 8.2.4859: wget2 files are not recognized

Problem:    wget2 files are not recognized.
Solution:   Add patterns to recognize wget2. (Doug Kearns)

2 years agopatch 8.2.4858: K_SPECIAL may be escaped twice v8.2.4858
zeertzjq [Mon, 2 May 2022 21:53:45 +0000 (22:53 +0100)]
patch 8.2.4858: K_SPECIAL may be escaped twice

Problem:    K_SPECIAL may be escaped twice.
Solution:   Avoid double escaping. (closes #10340)

2 years agopatch 8.2.4857: Yaml indent for multiline is wrong v8.2.4857
asmka [Mon, 2 May 2022 09:46:49 +0000 (10:46 +0100)]
patch 8.2.4857: Yaml indent for multiline is wrong

Problem:    Yaml indent for multiline is wrong.
Solution:   Adjust patterns. (closes #10328, closes #8740)

2 years agopatch 8.2.4856: MinGW compiler complains about unknown escape sequence v8.2.4856
Christian Brabandt [Mon, 2 May 2022 09:34:15 +0000 (10:34 +0100)]
patch 8.2.4856: MinGW compiler complains about unknown escape sequence

Problem:    MinGW compiler complains about unknown escape sequence.
Solution:   Avoid using a backslash in path. (Christian Brabandt,
            closes #10337)

2 years agopatch 8.2.4855: robot files are not recognized v8.2.4855
Zoe Roux [Mon, 2 May 2022 09:29:31 +0000 (10:29 +0100)]
patch 8.2.4855: robot files are not recognized

Problem:    Robot files are not recognized.
Solution:   Add patterns for robot files. (Zoe Roux, closes #10339)

2 years agopatch 8.2.4854: array size does not match usage v8.2.4854
Christian Brabandt [Sun, 1 May 2022 23:06:51 +0000 (00:06 +0100)]
patch 8.2.4854: array size does not match usage

Problem:    Array size does not match usage.
Solution:   Make array size 3 instead of 4. (Christian Brabandt, closes #10336)

2 years agopatch 8.2.4853: CI with FreeBSD is a bit outdated v8.2.4853
Philip H [Sun, 1 May 2022 19:43:50 +0000 (20:43 +0100)]
patch 8.2.4853: CI with FreeBSD is a bit outdated

Problem:    CI with FreeBSD is a bit outdated.
Solution:   Use 12.3 instead of 12.1. (closes #10333)

2 years agopatch 8.2.4852: ANSI color index to RGB value not correct v8.2.4852
LemonBoy [Sun, 1 May 2022 16:43:33 +0000 (17:43 +0100)]
patch 8.2.4852: ANSI color index to RGB value not correct

Problem:    ANSI color index to RGB value not correct.
Solution:   Convert the cterm index to ANSI index. (closes #10321,
            closes #9836))

2 years agopatch 8.2.4851: compiler warning for uninitialized variable v8.2.4851
Bram Moolenaar [Sat, 30 Apr 2022 23:42:24 +0000 (00:42 +0100)]
patch 8.2.4851: compiler warning for uninitialized variable

Problem:    Compiler warning for uninitialized variable.
Solution:   Use another variable to decide to restore option values.

2 years agopatch 8.2.4850: mksession mixes up "tabpages" and "curdir" arguments v8.2.4850
LemonBoy [Sat, 30 Apr 2022 15:10:27 +0000 (16:10 +0100)]
patch 8.2.4850: mksession mixes up "tabpages" and "curdir" arguments

Problem:    Mksession mixes up "tabpages" and "curdir" arguments.
Solution:   Correct logic for storing tabpage in session. (closes #10312)

2 years agopatch 8.2.4849: Gleam filetype not detected v8.2.4849
Mathias Jean Johansen [Sat, 30 Apr 2022 14:10:07 +0000 (15:10 +0100)]
patch 8.2.4849: Gleam filetype not detected

Problem:    Gleam filetype not detected.
Solution:   Add a pattern for Gleam files. (Mathias Jean Johansen,
            closes #10326)