]> granicus.if.org Git - vim/log
vim
2 years agopatch 8.2.4988: textprop in wrong position when replacing multi-byte chars v8.2.4988
LemonBoy [Sat, 21 May 2022 10:20:42 +0000 (11:20 +0100)]
patch 8.2.4988: textprop in wrong position when replacing multi-byte chars

Problem:    Textprop in wrong position when replacing multi-byte chars.
Solution:   Adjust textprop position. (closes #10461)

2 years agopatch 8.2.4987: after deletion a small fold may be closable v8.2.4987
Brandon Simmons [Fri, 20 May 2022 17:25:21 +0000 (18:25 +0100)]
patch 8.2.4987: after deletion a small fold may be closable

Problem:    After deletion a small fold may be closable.
Solution:   Check for a reverse range. (Brandon Simmons, closes #10457)

2 years agopatch 8.2.4986: some github actions are outdated v8.2.4986
Philip H [Fri, 20 May 2022 16:19:06 +0000 (17:19 +0100)]
patch 8.2.4986: some github actions are outdated

Problem:    Some github actions are outdated.
Solution:   Update CodeQl to v2, update checkout to v3. (closes #10450)

2 years agopatch 8.2.4985: PVS warns for possible array underrun v8.2.4985
Bram Moolenaar [Fri, 20 May 2022 13:10:50 +0000 (14:10 +0100)]
patch 8.2.4985: PVS warns for possible array underrun

Problem:    PVS warns for possible array underrun.
Solution:   Add a check for a positive value. (closes #10451)

2 years agopatch 8.2.4984: dragging statusline fails for window with winbar v8.2.4984
zeertzjq [Fri, 20 May 2022 12:45:59 +0000 (13:45 +0100)]
patch 8.2.4984: dragging statusline fails for window with winbar

Problem:    Dragging statusline fails for window with winbar.
Solution:   Fix off-by-one error. (closes #10448)

2 years agopatch 8.2.4983: colors test fails in the GUI v8.2.4983
Bram Moolenaar [Fri, 20 May 2022 09:39:18 +0000 (10:39 +0100)]
patch 8.2.4983: colors test fails in the GUI

Problem:    Colors test fails in the GUI.
Solution:   Reset g:terminal_ansi_colors.

2 years agopatch 8.2.4982: colors in terminal window are not 100% correct v8.2.4982
LemonBoy [Fri, 20 May 2022 09:10:34 +0000 (10:10 +0100)]
patch 8.2.4982: colors in terminal window are not 100% correct

Problem:    Colors in terminal window are not 100% correct.
Solution:   Use g:terminal_ansi_colors as documented. (closes #10429,
            closes #7227 closes #10347)

2 years agopatch 8.2.4981: it is not possible to manipulate autocommands v8.2.4981
Yegappan Lakshmanan [Thu, 19 May 2022 09:31:47 +0000 (10:31 +0100)]
patch 8.2.4981: it is not possible to manipulate autocommands

Problem:    It is not possible to manipulate autocommands.
Solution:   Add functions to add, get and set autocommands. (Yegappan
            Lakshmanan, closes #10291)

2 years agopatch 8.2.4980: when 'shortmess' contains 'A' loading session may still warn v8.2.4980
Bram Moolenaar [Wed, 18 May 2022 21:07:47 +0000 (22:07 +0100)]
patch 8.2.4980: when 'shortmess' contains 'A' loading session may still warn

Problem:    When 'shortmess' contains 'A' loading a session may still warn for
            an existing swap file. (Melker Ă–sterberg)
Solution:   Keep the 'A' flag to 'shortmess' in the session file.
            (closes #10443)

2 years agopatch 8.2.4979: accessing freed memory when line is flushed v8.2.4979
Bram Moolenaar [Wed, 18 May 2022 15:29:08 +0000 (16:29 +0100)]
patch 8.2.4979: accessing freed memory when line is flushed

Problem:    Accessing freed memory when line is flushed.
Solution:   Make a copy of the pattern to search for.

2 years agopatch 8.2.4978: no error if engine selection atom is not at the start v8.2.4978
Christian Brabandt [Wed, 18 May 2022 14:04:02 +0000 (15:04 +0100)]
patch 8.2.4978: no error if engine selection atom is not at the start

Problem:    No error if engine selection atom is not at the start.
Solution:   Give an error. (Christian Brabandt, closes #10439)

2 years agopatch 8.2.4977: memory access error when substitute expression changes window v8.2.4977
Bram Moolenaar [Wed, 18 May 2022 12:11:57 +0000 (13:11 +0100)]
patch 8.2.4977: memory access error when substitute expression changes window

Problem:    Memory access error when substitute expression changes window.
Solution:   Disallow changing window in substitute expression.

2 years agopatch 8.2.4976: Coverity complains about not restoring a saved value v8.2.4976
Bram Moolenaar [Wed, 18 May 2022 10:00:48 +0000 (11:00 +0100)]
patch 8.2.4976: Coverity complains about not restoring a saved value

Problem:    Coverity complains about not restoring a saved value.
Solution:   Restore value before handling error.

2 years agopatch 8.2.4975: recursive command line loop may cause a crash v8.2.4975
Bram Moolenaar [Tue, 17 May 2022 19:11:02 +0000 (20:11 +0100)]
patch 8.2.4975: recursive command line loop may cause a crash

Problem:    Recursive command line loop may cause a crash.
Solution:   Limit recursion of getcmdline().

2 years agopatch 8.2.4974: ":so" command may read after end of buffer v8.2.4974
Bram Moolenaar [Tue, 17 May 2022 16:47:07 +0000 (17:47 +0100)]
patch 8.2.4974: ":so" command may read after end of buffer

Problem:    ":so" command may read after end of buffer.
Solution:   Compute length of text properly.

2 years agopatch 8.2.4973: Vim9: type error for list unpack mentions argument v8.2.4973
Bram Moolenaar [Tue, 17 May 2022 15:12:39 +0000 (16:12 +0100)]
patch 8.2.4973: Vim9: type error for list unpack mentions argument

Problem:    Vim9: type error for list unpack mentions argument.
Solution:   Mention variable. (close #10435)

2 years agopatch 8.2.4972: Vim9: compilation fails when using dict member when skipping v8.2.4972
Bram Moolenaar [Tue, 17 May 2022 14:03:33 +0000 (15:03 +0100)]
patch 8.2.4972: Vim9: compilation fails when using dict member when skipping

Problem:    Vim9: compilation fails when using dict member when skipping.
Solution:   Do not generate ISN_USEDICT when skipping. (closes #10433)

2 years agopatch 8.2.4971: Vim9: interpolated string seen as range v8.2.4971
Bram Moolenaar [Tue, 17 May 2022 12:14:23 +0000 (13:14 +0100)]
patch 8.2.4971: Vim9: interpolated string seen as range

Problem:    Vim9: interpolated string seen as range.
Solution:   Recognize an interpolated string at the start of a command line.
            (closes #10434)

2 years agopatch 8.2.4970: "eval 123" gives an error, "eval 'abc'" does not v8.2.4970
Bram Moolenaar [Tue, 17 May 2022 11:45:15 +0000 (12:45 +0100)]
patch 8.2.4970: "eval 123" gives an error, "eval 'abc'" does not

Problem:    "eval 123" gives an error, "eval 'abc'" does not.
Solution:   Also give an error when evaluating only a string. (closes #10434)

2 years agopatch 8.2.4969: changing text in Visual mode may cause invalid memory access v8.2.4969
Bram Moolenaar [Mon, 16 May 2022 18:40:59 +0000 (19:40 +0100)]
patch 8.2.4969: changing text in Visual mode may cause invalid memory access

Problem:    Changing text in Visual mode may cause invalid memory access.
Solution:   Check the Visual position after making a change.

2 years agopatch 8.2.4968: reading past end of the line when C-indenting v8.2.4968
Bram Moolenaar [Mon, 16 May 2022 17:06:15 +0000 (18:06 +0100)]
patch 8.2.4968: reading past end of the line when C-indenting

Problem:    Reading past end of the line when C-indenting.
Solution:   Check for NUL.

2 years agopatch 8.2.4967: MS-Windows GUI: mouse event test sometimes fails v8.2.4967
Bram Moolenaar [Mon, 16 May 2022 16:07:41 +0000 (17:07 +0100)]
patch 8.2.4967: MS-Windows GUI: mouse event test sometimes fails

Problem:    MS-Windows GUI: mouse event test sometimes fails.
Solution:   Ignore one move event only if there is an extra event.

2 years agopatch 8.2.4966: MS-Windows GUI: mouse event test gets extra event v8.2.4966
Bram Moolenaar [Mon, 16 May 2022 15:41:35 +0000 (16:41 +0100)]
patch 8.2.4966: MS-Windows GUI: mouse event test gets extra event

Problem:    MS-Windows GUI: mouse event test gets extra event.
Solution:   Ignore one move event.

2 years agopatch 8.2.4965: GUI: testing mouse move event depends on screen cell size v8.2.4965
Bram Moolenaar [Mon, 16 May 2022 14:27:46 +0000 (15:27 +0100)]
patch 8.2.4965: GUI: testing mouse move event depends on screen cell size

Problem:    GUI: testing mouse move event depends on screen cell size.
Solution:   Multiply the row and column with the screen cell size.

2 years agopatch 8.2.4964: MS-Windows GUI: mouse event test is flaky v8.2.4964
Bram Moolenaar [Mon, 16 May 2022 12:34:44 +0000 (13:34 +0100)]
patch 8.2.4964: MS-Windows GUI: mouse event test is flaky

Problem:    MS-Windows GUI: mouse event test is flaky.
Solution:   Add a short delay after generating a mouse event.

2 years agopatch 8.2.4963: expanding path with "/**" may overrun end of buffer v8.2.4963
Bram Moolenaar [Mon, 16 May 2022 11:37:36 +0000 (12:37 +0100)]
patch 8.2.4963: expanding path with "/**" may overrun end of buffer

Problem:    Expanding path with "/**" may overrun end of buffer.
Solution:   Use vim_snprintf().

2 years agopatch 8.2.4962: files show up in git status v8.2.4962
shane.xb.qian [Mon, 16 May 2022 10:14:09 +0000 (11:14 +0100)]
patch 8.2.4962: files show up in git status

Problem:    Files show up in git status.
Solution:   Adjust the list of ignored files.  Clean up more test files.
            (Shane xb Qian, closes #9929)

2 years agopatch 8.2.4961: build error with a certain combination of features v8.2.4961
Bram Moolenaar [Mon, 16 May 2022 09:04:51 +0000 (10:04 +0100)]
patch 8.2.4961: build error with a certain combination of features

Problem:    Build error with a certain combination of features.
Solution:   Adjust #if. (John Marriott)

2 years agopatch 8.2.4960: text properties that cross lines not updated for deleted line v8.2.4960
Paul Ollis [Sun, 15 May 2022 21:24:55 +0000 (22:24 +0100)]
patch 8.2.4960: text properties that cross lines not updated for deleted line

Problem:    Text properties that cross line boundary are not correctly updated
            for a deleted line.
Solution:   Correct computing location of text property entry. (Paul Ollis,
            closes #10431, closes #10430)

2 years agopatch 8.2.4959: using NULL regexp program v8.2.4959
Bram Moolenaar [Sun, 15 May 2022 13:50:12 +0000 (14:50 +0100)]
patch 8.2.4959: using NULL regexp program

Problem:    Using NULL regexp program.
Solution:   Check for regexp program becoming NULL in more places.

2 years agopatch 8.2.4958: a couple conditions are always true v8.2.4958
=?UTF-8?q?Dundar=20G=C3=B6c?= [Sun, 15 May 2022 12:59:11 +0000 (13:59 +0100)]
patch 8.2.4958: a couple conditions are always true

Problem:    A couple conditions are always true.
Solution:   Remove the conditions. (Goc Dundar, closes #10428)

2 years agopatch 8.2.4957: text properties in a wrong position after a block change v8.2.4957
LemonBoy [Sun, 15 May 2022 12:08:02 +0000 (13:08 +0100)]
patch 8.2.4957: text properties in a wrong position after a block change

Problem:    Text properties in a wrong position after a block change.
Solution:   Adjust the properties columns. (closes #10427)

2 years agopatch 8.2.4956: reading past end of line with "gf" in Visual block mode v8.2.4956
Bram Moolenaar [Sat, 14 May 2022 20:29:44 +0000 (21:29 +0100)]
patch 8.2.4956: reading past end of line with "gf" in Visual block mode

Problem:    Reading past end of line with "gf" in Visual block mode.
Solution:   Do not include the NUL in the length.

2 years agopatch 8.2.4955: text property in wrong position after auto-indent v8.2.4955
LemonBoy [Sat, 14 May 2022 17:48:05 +0000 (18:48 +0100)]
patch 8.2.4955: text property in wrong position after auto-indent

Problem:    Text property in wrong position after auto-indent.
Solution:   Adjust text property columns. (closes #10422, closes #7719)

2 years agopatch 8.2.4954: inserting line breaks text property spanning two lines v8.2.4954
LemonBoy [Sat, 14 May 2022 17:10:15 +0000 (18:10 +0100)]
patch 8.2.4954: inserting line breaks text property spanning two lines

Problem:    Inserting line breaks text property spanning more then one line.
Solution:   Check TP_FLAG_CONT_PREV and TP_FLAG_CONT_NEXT. (closes #10423)

2 years agoUpdate runtime files, new color schemes
Bram Moolenaar [Sat, 14 May 2022 12:33:50 +0000 (13:33 +0100)]
Update runtime files, new color schemes

2 years agopatch 8.2.4953: with 'si' inserting '}' after completion goes wrong v8.2.4953
Bram Moolenaar [Sat, 14 May 2022 11:54:23 +0000 (12:54 +0100)]
patch 8.2.4953: with 'si' inserting '}' after completion goes wrong

Problem:    With 'smartindent' inserting '}' after completion goes wrong.
Solution:   Check the cursor is in indent.  (closes #10420)

2 years agopatch 8.2.4952: GUI test will fail if color scheme changes v8.2.4952
Bram Moolenaar [Sat, 14 May 2022 11:34:43 +0000 (12:34 +0100)]
patch 8.2.4952: GUI test will fail if color scheme changes

Problem:    GUI test will fail if color scheme changes.
Solution:   Reduce the test for now.

2 years agopatch 8.2.4951: smart indenting done when not enabled v8.2.4951
Bram Moolenaar [Sat, 14 May 2022 10:52:23 +0000 (11:52 +0100)]
patch 8.2.4951: smart indenting done when not enabled

Problem:    Smart indenting done when not enabled.
Solution:   Check option values before setting can_si. (closes #10420)

2 years agopatch 8.2.4950: text properties position wrong after shifting text v8.2.4950
LemonBoy [Fri, 13 May 2022 20:56:28 +0000 (21:56 +0100)]
patch 8.2.4950: text properties position wrong after shifting text

Problem:    Text properties position wrong after shifting text.
Solution:   Adjust the text properties when shifting a block of text.
            (closes #10418)

2 years agopatch 8.2.4949: Vim9: some code not covered by tests v8.2.4949
Bram Moolenaar [Fri, 13 May 2022 15:23:37 +0000 (16:23 +0100)]
patch 8.2.4949: Vim9: some code not covered by tests

Problem:    Vim9: some code not covered by tests.
Solution:   Add a few more test cases.  Fix double error message.

2 years agopatch 8.2.4948: cannot use Perl heredoc in nested :def function v8.2.4948
Bram Moolenaar [Fri, 13 May 2022 12:50:36 +0000 (13:50 +0100)]
patch 8.2.4948: cannot use Perl heredoc in nested :def function

Problem:    Cannot use Perl heredoc in nested :def function. (Virginia
            Senioria)
Solution:   Only concatenate heredoc lines when not in a nested function.
            (closes #10415)

2 years agopatch 8.2.4947: text properties not adjusted when accepting spell suggestion v8.2.4947
LemonBoy [Fri, 13 May 2022 11:41:50 +0000 (12:41 +0100)]
patch 8.2.4947: text properties not adjusted when accepting spell suggestion

Problem:    Text properties not adjusted when accepting spell suggestion.
Solution:   Adjust text properties when text changes. (closes #10414)

2 years agopatch 8.2.4946: Vim9: some code not covered by tests v8.2.4946
Bram Moolenaar [Thu, 12 May 2022 21:03:01 +0000 (22:03 +0100)]
patch 8.2.4946: Vim9: some code not covered by tests

Problem:    Vim9: some code not covered by tests.
Solution:   Add a few more test cases.  Remove dead code.

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.