]> granicus.if.org Git - vim/log
vim
2 years agopatch 8.2.5067: timer_create is not available on every Mac system v8.2.5067
Bram Moolenaar [Wed, 8 Jun 2022 09:48:18 +0000 (10:48 +0100)]
patch 8.2.5067: timer_create is not available on every Mac system

Problem:    Timer_create is not available on every Mac system. (Hisashi T
            Fujinaka)
Solution:   Adjust #ifdef.

2 years agopatch 8.2.5066: timer_create is not available on every Mac system v8.2.5066
Bram Moolenaar [Tue, 7 Jun 2022 09:16:15 +0000 (10:16 +0100)]
patch 8.2.5066: timer_create is not available on every Mac system

Problem:    Timer_create is not available on every Mac system. (Hisashi T
            Fujinaka)
Solution:   Adjust #ifdef.

2 years agopatch 8.2.5065: wrong return type for main() in tee.c v8.2.5065
Bram Moolenaar [Mon, 6 Jun 2022 21:16:09 +0000 (22:16 +0100)]
patch 8.2.5065: wrong return type for main() in tee.c

Problem:    Wrong return type for main() in tee.c.
Solution:   Use "int" instead of "void".  Remove unused variable.

2 years agoUpdate runtime files.
Bram Moolenaar [Mon, 6 Jun 2022 19:52:59 +0000 (20:52 +0100)]
Update runtime files.

2 years agopatch 8.2.5064: no test for what 8.1.0052 fixes v8.2.5064
zeertzjq [Mon, 6 Jun 2022 15:22:46 +0000 (16:22 +0100)]
patch 8.2.5064: no test for what 8.1.0052 fixes

Problem:    No test for what 8.1.0052 fixes.
Solution:   Add a test. (closes #10531)

2 years agopatch 8.2.5063: error for a command may go over the end of IObuff v8.2.5063
Bram Moolenaar [Mon, 6 Jun 2022 14:38:21 +0000 (15:38 +0100)]
patch 8.2.5063: error for a command may go over the end of IObuff

Problem:    Error for a command may go over the end of IObuff.
Solution:   Truncate the message.

2 years agopatch 8.2.5062: Coverity warns for dead code v8.2.5062
Bram Moolenaar [Mon, 6 Jun 2022 09:07:01 +0000 (10:07 +0100)]
patch 8.2.5062: Coverity warns for dead code

Problem:    Coverity warns for dead code.
Solution:   Remove the dead code.

2 years agopatch 8.2.5061: C89 requires signal handlers to return void v8.2.5061
Bram Moolenaar [Sun, 5 Jun 2022 21:05:19 +0000 (22:05 +0100)]
patch 8.2.5061: C89 requires signal handlers to return void

Problem:    C89 requires signal handlers to return void.
Solution:   Drop RETSIGTYPE and hard-code a void return value.

2 years agopatch 8.2.5060: running configure fails v8.2.5060
Bram Moolenaar [Sun, 5 Jun 2022 19:03:17 +0000 (20:03 +0100)]
patch 8.2.5060: running configure fails

Problem:    Running configure fails.
Solution:   Remove line break.

2 years agopatch 8.2.5059: autoconf 2.71 produces many obsolete warnings v8.2.5059
Bram Moolenaar [Sun, 5 Jun 2022 18:51:55 +0000 (19:51 +0100)]
patch 8.2.5059: autoconf 2.71 produces many obsolete warnings

Problem:    Autoconf 2.71 produces many obsolete warnings.
Solution:   Replace obsolete macros with non-obsolete ones, where the
            functionality does not change. (issue #10528)

2 years agopatch 8.2.5058: input() does not handle composing characters properly v8.2.5058
zeertzjq [Sun, 5 Jun 2022 18:01:37 +0000 (19:01 +0100)]
patch 8.2.5058: input() does not handle composing characters properly

Problem:    input() does not handle composing characters properly.
Solution:   Use mb_cptr2char_adv() instead of mb_ptr2char_adv().
            (closes #10527)

2 years agopatch 8.2.5057: using gettimeofday() for timeout is very inefficient v8.2.5057
Paul Ollis [Sun, 5 Jun 2022 15:55:54 +0000 (16:55 +0100)]
patch 8.2.5057: using gettimeofday() for timeout is very inefficient

Problem:    Using gettimeofday() for timeout is very inefficient.
Solution:   Set a platform dependent timer. (Paul Ollis, closes #10505)

2 years agopatch 8.2.5056: the channel log only contains some of the raw terminal output v8.2.5056
Bram Moolenaar [Sat, 4 Jun 2022 21:15:54 +0000 (22:15 +0100)]
patch 8.2.5056: the channel log only contains some of the raw terminal output

Problem:    The channel log only contains some of the raw terminal output.
Solution:   Add the "o" flag to log all terminal output.  Use it for "--log".

2 years agopatch 8.2.5055: statusline is not updated when terminal title changes v8.2.5055
LemonBoy [Sat, 4 Jun 2022 18:57:59 +0000 (19:57 +0100)]
patch 8.2.5055: statusline is not updated when terminal title changes

Problem:    Statusline is not updated when terminal title changes.
Solution:   Redraw the status line when the title changes. (issue #10425)

2 years agoUpdate runtime files
Bram Moolenaar [Fri, 3 Jun 2022 20:59:47 +0000 (21:59 +0100)]
Update runtime files

2 years agopatch 8.2.5054: no good filetype for conf files similar to dosini v8.2.5054
Mudskipper875 [Fri, 3 Jun 2022 17:40:53 +0000 (18:40 +0100)]
patch 8.2.5054: no good filetype for conf files similar to dosini

Problem:    No good filetype for conf files similar to dosini.
Solution:   Add the confini filetype. (closes #10510)

2 years agopatch 8.2.5053: cannot have a comment halfway an expression in a block v8.2.5053
Bram Moolenaar [Fri, 3 Jun 2022 16:39:46 +0000 (17:39 +0100)]
patch 8.2.5053: cannot have a comment halfway an expression in a block

Problem:    Cannot have a comment halfway an expression in an autocmd command
            block.
Solution:   When skipping over the NL also skip over comments. (closes #10519)

2 years agopatch 8.2.5052: CI checkout step title is a bit cryptic v8.2.5052
Philip H [Wed, 1 Jun 2022 20:26:34 +0000 (21:26 +0100)]
patch 8.2.5052: CI checkout step title is a bit cryptic

Problem:    CI checkout step title is a bit cryptic.
Solution:   Add a better title. (closes #10509)

2 years agopatch 8.2.5051: check for autocmd_add() event argument is confusing v8.2.5051
Bram Moolenaar [Wed, 1 Jun 2022 15:02:38 +0000 (16:02 +0100)]
patch 8.2.5051: check for autocmd_add() event argument is confusing

Problem:    Check for autocmd_add() event argument is confusing.
Solution:   Make the code more straightforward.

2 years agopatch 8.2.5050: using freed memory when searching for pattern in path v8.2.5050
Bram Moolenaar [Wed, 1 Jun 2022 14:23:13 +0000 (15:23 +0100)]
patch 8.2.5050: using freed memory when searching for pattern in path

Problem:    Using freed memory when searching for pattern in path.
Solution:   Make a copy of the line.

2 years agopatch 8.2.5049: insufficient tests for autocommands v8.2.5049
Yegappan Lakshmanan [Wed, 1 Jun 2022 11:31:53 +0000 (12:31 +0100)]
patch 8.2.5049: insufficient tests for autocommands

Problem:    Insufficient tests for autocommands.
Solution:   Add a few more tests. (Yegappan Lakshmanan, closes #10507)

2 years agopatch 8.2.5048: when using XIM the gui test may fail v8.2.5048
Bram Moolenaar [Tue, 31 May 2022 16:03:14 +0000 (17:03 +0100)]
patch 8.2.5048: when using XIM the gui test may fail

Problem:    When using XIM the gui test may fail.
Solution:   Only use --not-a-term when not using XIM.

2 years agopatch 8.2.5047: CurSearch highlight is often wrong v8.2.5047
Bram Moolenaar [Tue, 31 May 2022 12:43:12 +0000 (13:43 +0100)]
patch 8.2.5047: CurSearch highlight is often wrong

Problem:    CurSearch highlight is often wrong.
Solution:   Remember the last highlighted position and redraw when needed.

2 years agopatch 8.2.5046: vim_regsub() can overwrite the destination v8.2.5046
Bram Moolenaar [Mon, 30 May 2022 19:58:55 +0000 (20:58 +0100)]
patch 8.2.5046: vim_regsub() can overwrite the destination

Problem:    vim_regsub() can overwrite the destination.
Solution:   Pass the destination length, give an error when it doesn't fit.

2 years agopatch 8.2.5045: can escape a terminal popup window when the job is finished v8.2.5045
Bram Moolenaar [Mon, 30 May 2022 16:58:03 +0000 (17:58 +0100)]
patch 8.2.5045: can escape a terminal popup window when the job is finished

Problem:    Can escape a terminal popup window when the job is finished.
Solution:   Only check for a finished job where it is relevant.
            (closes #10253)

2 years agopatch 8.2.5044: command line test fails v8.2.5044
Bram Moolenaar [Mon, 30 May 2022 15:01:42 +0000 (16:01 +0100)]
patch 8.2.5044: command line test fails

Problem:    Command line test fails.
Solution:   Also beep when cmdline win can't be opened because of locks.
            Make the test not beep.  Make the test pass on MS-Windows.

2 years agopatch 8.2.5043: can open a cmdline window from a substitute expression v8.2.5043
Bram Moolenaar [Mon, 30 May 2022 14:23:09 +0000 (15:23 +0100)]
patch 8.2.5043: can open a cmdline window from a substitute expression

Problem:    Can open a cmdline window from a substitute expression.
Solution:   Disallow opening a command line window when text or buffer is
            locked.

2 years agopatch 8.2.5042: scrollbar thumb in tall scrolled popup not visible v8.2.5042
Bram Moolenaar [Mon, 30 May 2022 12:20:56 +0000 (13:20 +0100)]
patch 8.2.5042: scrollbar thumb in tall scrolled popup not visible

Problem:    Scrollbar thumb in tall scrolled popup not visible.
Solution:   Show at least one thumb character. (fixes 10492)

2 years agopatch 8.2.5041: cannot close a terminal popup with "NONE" job v8.2.5041
Bram Moolenaar [Sun, 29 May 2022 21:37:05 +0000 (22:37 +0100)]
patch 8.2.5041: cannot close a terminal popup with "NONE" job

Problem:    Cannot close a terminal popup with "NONE" job.
Solution:   Adjust the conditions for whether a job is running.
            (closes #10498)

2 years agopatch 8.2.5040: scrollbar thumb in scrolled popup not visible v8.2.5040
Bram Moolenaar [Sun, 29 May 2022 17:18:18 +0000 (18:18 +0100)]
patch 8.2.5040: scrollbar thumb in scrolled popup not visible

Problem:    Scrollbar thumb in scrolled popup not visible.
Solution:   Show at least one thumb character. (fixes 10492)

2 years agopatch 8.2.5039: confusing error if first argument of popup_create() is wrong v8.2.5039
Bram Moolenaar [Sun, 29 May 2022 16:13:24 +0000 (17:13 +0100)]
patch 8.2.5039: confusing error if first argument of popup_create() is wrong

Problem:    Confusing error if first argument of popup_create() is wrong.
Solution:   Give a more informative error.

2 years agopatch 8.2.5038: a finished terminal in a popup window does not show scrollbar v8.2.5038
Bram Moolenaar [Sun, 29 May 2022 13:13:04 +0000 (14:13 +0100)]
patch 8.2.5038: a finished terminal in a popup window does not show scrollbar

Problem:    A finished terminal in a popup window does not show a scrollbar.
Solution:   Show the scrollbar if the terminal job is finished. (closes
            #10497)

2 years agopatch 8.2.5037: cursor position may be invalid after "0;" range v8.2.5037
Bram Moolenaar [Sat, 28 May 2022 13:25:35 +0000 (14:25 +0100)]
patch 8.2.5037: cursor position may be invalid after "0;" range

Problem:    Cursor position may be invalid after "0;" range.
Solution:   Check the cursor position when it was set by ";" in the range.

2 years agopatch 8.2.5036: using two counters for timeout check in NFA engine v8.2.5036
Bram Moolenaar [Sat, 28 May 2022 10:08:40 +0000 (11:08 +0100)]
patch 8.2.5036: using two counters for timeout check in NFA engine

Problem:    Using two counters for timeout check in NFA engine.
Solution:   Use only one counter.  Tune the counts based on guessing.

2 years agopatch 8.2.5035: when splitting a window the changelist position moves v8.2.5035
zeertzjq [Sat, 28 May 2022 09:49:44 +0000 (10:49 +0100)]
patch 8.2.5035: when splitting a window the changelist position moves

Problem:    When splitting a window the changelist position moves.
Solution:   Set the changelist index a bit later. (closes #10493)

2 years agopatch 8.2.5034: there is no way to get the byte index from a virtual column v8.2.5034
Bram Moolenaar [Fri, 27 May 2022 20:58:00 +0000 (21:58 +0100)]
patch 8.2.5034: there is no way to get the byte index from a virtual column

Problem:    There is no way to get the byte index from a virtual column.
Solution:   Add virtcol2col(). (Yegappan Lakshmanan, closes #10477,
            closes #10098)

2 years agopatch 8.2.5033: build error with +eval but without +quickfix v8.2.5033
Bram Moolenaar [Fri, 27 May 2022 20:16:34 +0000 (21:16 +0100)]
patch 8.2.5033: build error with +eval but without +quickfix

Problem:    Build error with +eval but without +quickfix.  Warning for
            uninitialized variable.
Solution:   Adjust #ifdefs. (John Marriott)

2 years agopatch 8.2.5032: Python 3 test fails without the GUI v8.2.5032
Bram Moolenaar [Fri, 27 May 2022 19:23:20 +0000 (20:23 +0100)]
patch 8.2.5032: Python 3 test fails without the GUI

Problem:    Python 3 test fails without the GUI.
Solution:   Check the balloon_eval feature is available.

2 years agopatch 8.2.5031: cannot easily run the benchmarks v8.2.5031
Bram Moolenaar [Fri, 27 May 2022 19:13:28 +0000 (20:13 +0100)]
patch 8.2.5031: cannot easily run the benchmarks

Problem:    Cannot easily run the benchmarks.
Solution:   Have "make benchmark" in the src directory work.

2 years agopatch 8.2.5030: autocmd_add() can only handle one event and pattern v8.2.5030
Yegappan Lakshmanan [Fri, 27 May 2022 17:05:33 +0000 (18:05 +0100)]
patch 8.2.5030: autocmd_add() can only handle one event and pattern

Problem:    autocmd_add() can only handle one event and pattern.
Solution:   Support a list of events and patterns. (Yegappan Lakshmanan,
            closes #10483)

2 years agopatch 8.2.5029: "textlock" is always zero v8.2.5029
zeertzjq [Fri, 27 May 2022 16:26:55 +0000 (17:26 +0100)]
patch 8.2.5029: "textlock" is always zero

Problem:    "textlock" is always zero.
Solution:   Remove "textlock" and rename "textwinlock" to "textlock".
            (closes #10489)

2 years agopatch 8.2.5028: syntax regexp matching can be slow v8.2.5028
Bram Moolenaar [Fri, 27 May 2022 14:35:28 +0000 (15:35 +0100)]
patch 8.2.5028: syntax regexp matching can be slow

Problem:    Syntax regexp matching can be slow.
Solution:   Adjust the counters for checking the timeout to check about once
            per msec. (closes #10487, closes #2712)

2 years agopatch 8.2.5027: error for missing :endif when an exception was thrown v8.2.5027
Bram Moolenaar [Fri, 27 May 2022 12:52:08 +0000 (13:52 +0100)]
patch 8.2.5027: error for missing :endif when an exception was thrown

Problem:    Error for missing :endif when an exception was thrown. (Dani
            Dickstein)
Solution:   Do not give an error when aborting. (closes #10490)

2 years agopatch 8.2.5026: Vim9: a few lines not covered by tests v8.2.5026
Bram Moolenaar [Thu, 26 May 2022 21:24:43 +0000 (22:24 +0100)]
patch 8.2.5026: Vim9: a few lines not covered by tests

Problem:    Vim9: a few lines not covered by tests.
Solution:   Delete dead code.  Add a few test cases. make "12->func()" work.

2 years agopatch 8.2.5025: Vim9: a few lines not covered by tests v8.2.5025
Bram Moolenaar [Thu, 26 May 2022 18:54:05 +0000 (19:54 +0100)]
patch 8.2.5025: Vim9: a few lines not covered by tests

Problem:    Vim9: a few lines not covered by tests.
Solution:   Add a few tests.

2 years agopatch 8.2.5024: using freed memory with "]d" v8.2.5024
Bram Moolenaar [Thu, 26 May 2022 15:32:44 +0000 (16:32 +0100)]
patch 8.2.5024: using freed memory with "]d"

Problem:    Using freed memory with "]d".
Solution:   Copy the pattern before searching.

2 years agopatch 8.2.5023: substitute overwrites allocated buffer v8.2.5023
Bram Moolenaar [Thu, 26 May 2022 14:56:23 +0000 (15:56 +0100)]
patch 8.2.5023: substitute overwrites allocated buffer

Problem:    Substitute overwrites allocated buffer.
Solution:   Disallow undo when in a substitute command.

2 years agopatch 8.2.5022: 'completefunc'/'omnifunc' error does not end completion v8.2.5022
LemonBoy [Thu, 26 May 2022 14:23:26 +0000 (15:23 +0100)]
patch 8.2.5022: 'completefunc'/'omnifunc' error does not end completion

Problem:    'completefunc'/'omnifunc' error does not end completion.
Solution:   Check if there was an error or exception. (closes #10486,
            closes #4218)

2 years agopatch 8.2.5021: build fails with normal features and +terminal v8.2.5021
Bram Moolenaar [Thu, 26 May 2022 13:06:37 +0000 (14:06 +0100)]
patch 8.2.5021: build fails with normal features and +terminal

Problem:    Build fails with normal features and +terminal. (Dominique Pellé)
Solution:   Add #ifdefs. (closes #10484)

2 years agopatch 8.2.5020: using 'imstatusfunc' and 'imactivatefunc' breaks 'foldopen' v8.2.5020
Milly [Thu, 26 May 2022 12:16:25 +0000 (13:16 +0100)]
patch 8.2.5020: using 'imstatusfunc' and 'imactivatefunc' breaks 'foldopen'

Problem:    Using 'imstatusfunc' and 'imactivatefunc' breaks 'foldopen'.
Solution:   Save and restore the KeyTyped flag. (closes #10479)

2 years agopatch 8.2.5019: cannot get the first screen column of a character v8.2.5019
LemonBoy [Thu, 26 May 2022 11:10:37 +0000 (12:10 +0100)]
patch 8.2.5019: cannot get the first screen column of a character

Problem:    Cannot get the first screen column of a character.
Solution:   Let virtcol() optionally return a list. (closes #10482,
            closes #7964)

2 years agopatch 8.2.5018: Vim9: some code is not covered by tests v8.2.5018
Bram Moolenaar [Wed, 25 May 2022 18:15:10 +0000 (19:15 +0100)]
patch 8.2.5018: Vim9: some code is not covered by tests

Problem:    Vim9: some code is not covered by tests.
Solution:   Delete dead code.

2 years agopatch 8.2.5017: gcc 12.1 warns for uninitialized variable v8.2.5017
mityu [Wed, 25 May 2022 16:29:46 +0000 (17:29 +0100)]
patch 8.2.5017: gcc 12.1 warns for uninitialized variable

Problem:    Gcc 12.1 warns for uninitialized variable.
Solution:   Initialize the variable. (closes #10476)

2 years agopatch 8.2.5016: access before start of text with a put command v8.2.5016
Bram Moolenaar [Wed, 25 May 2022 14:15:38 +0000 (15:15 +0100)]
patch 8.2.5016: access before start of text with a put command

Problem:    Access before start of text with a put command.
Solution:   Check the length is more than zero.

2 years agopatch 8.2.5015: Hoon and Moonscript files are not recognized v8.2.5015
=?UTF-8?q?Dundar=20G=C3=B6c?= [Wed, 25 May 2022 11:42:08 +0000 (12:42 +0100)]
patch 8.2.5015: Hoon and Moonscript files are not recognized

Problem:    Hoon and Moonscript files are not recognized.
Solution:   Add filetype patterns. (Goc Dundar, closes #10478)

2 years agopatch 8.2.5014: byte offsets are wrong when using text properties v8.2.5014
Paul Ollis [Tue, 24 May 2022 20:26:37 +0000 (21:26 +0100)]
patch 8.2.5014: byte offsets are wrong when using text properties

Problem:    Byte offsets are wrong when using text properties.
Solution:   Make sure text properties do not affect the byte counts.
            (Paul Ollis, closes #10474)

2 years agopatch 8.2.5013: after text formatting cursor may be in an invalid position v8.2.5013
Bram Moolenaar [Tue, 24 May 2022 12:57:54 +0000 (13:57 +0100)]
patch 8.2.5013: after text formatting cursor may be in an invalid position

Problem:    After text formatting the cursor may be in an invalid position.
Solution:   Correct the cursor position after formatting.

2 years agopatch 8.2.5012: cannot select one character inside () v8.2.5012
LemonBoy [Tue, 24 May 2022 10:49:31 +0000 (11:49 +0100)]
patch 8.2.5012: cannot select one character inside ()

Problem:    Cannot select one character inside ().
Solution:   Do not try to extend the area if it is empty. (closes #10472,
            closes #6616)

2 years agopatch 8.2.5011: Replacing an autocommand requires several lines v8.2.5011
Yegappan Lakshmanan [Tue, 24 May 2022 10:40:11 +0000 (11:40 +0100)]
patch 8.2.5011: Replacing an autocommand requires several lines

Problem:    Replacing an autocommand requires several lines.
Solution:   Add the "replace" flag to autocmd_add(). (Yegappan Lakshmanan,
            closes #10473)

2 years agopatch 8.2.5010: the terminal debugger uses various global variables v8.2.5010
Bram Moolenaar [Mon, 23 May 2022 20:49:41 +0000 (21:49 +0100)]
patch 8.2.5010: the terminal debugger uses various global variables

Problem:    The terminal debugger uses various global variables.
Solution:   Add a dictionary to hold the terminal debugger preferences.

2 years agopatch 8.2.5009: fold may not be closeable after appending v8.2.5009
Brandon Simmons [Mon, 23 May 2022 14:33:08 +0000 (15:33 +0100)]
patch 8.2.5009: fold may not be closeable after appending

Problem:    Fold may not be closeable after appending.
Solution:   Set the fd_small flag to MAYBE. (Brandon Simmons, closes #10471)

2 years agopatch 8.2.5008: when 'formatoptions' contains "/" wrongly wrapping comment v8.2.5008
Bram Moolenaar [Mon, 23 May 2022 12:10:48 +0000 (13:10 +0100)]
patch 8.2.5008: when 'formatoptions' contains "/" wrongly wrapping comment

Problem:    When 'formatoptions' contains "/" wrongly wrapping a long trailing
            comment.
Solution:   Pass the OPENLINE_FORMAT flag.

2 years agopatch 8.2.5007: spell suggestion may use uninitialized memory v8.2.5007
Bram Moolenaar [Mon, 23 May 2022 11:01:50 +0000 (12:01 +0100)]
patch 8.2.5007: spell suggestion may use uninitialized memory

Problem:    Spell suggestion may use uninitialized memory. (Zdenek Dohnal)
Solution:   Avoid going over the end of the word.

2 years agopatch 8.2.5006: asan warns for undefined behavior v8.2.5006
Bram Moolenaar [Sun, 22 May 2022 21:07:52 +0000 (22:07 +0100)]
patch 8.2.5006: asan warns for undefined behavior

Problem:    Asan warns for undefined behavior.
Solution:   Cast the shifted value to unsigned.

2 years agopatch 8.2.5005: compiler warning for uninitialized variable v8.2.5005
Bram Moolenaar [Sun, 22 May 2022 20:53:26 +0000 (21:53 +0100)]
patch 8.2.5005: compiler warning for uninitialized variable

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

2 years agopatch 8.2.5004: right shift on negative number does not work as documented v8.2.5004
Bram Moolenaar [Sun, 22 May 2022 19:16:32 +0000 (20:16 +0100)]
patch 8.2.5004: right shift on negative number does not work as documented

Problem:    Right shift on negative number does not work as documented.
Solution:   Use a uvarnumber_T type cast.

2 years agopatch 8.2.5003: cannot do bitwise shifts v8.2.5003
Yegappan Lakshmanan [Sun, 22 May 2022 18:13:49 +0000 (19:13 +0100)]
patch 8.2.5003: cannot do bitwise shifts

Problem:    Cannot do bitwise shifts.
Solution:   Add the >> and << operators. (Yegappan Lakshmanan, closes #8457)

2 years agopatch 8.2.5002: deletebufline() may change Visual selection v8.2.5002
LemonBoy [Sun, 22 May 2022 14:35:53 +0000 (15:35 +0100)]
patch 8.2.5002: deletebufline() may change Visual selection

Problem:    deletebufline() may change Visual selection.
Solution:   Disable Visual mode when using another buffer. (closes #10469)

2 years agopatch 8.2.5001: checking translations affects the search pattern history v8.2.5001
Bram Moolenaar [Sun, 22 May 2022 14:28:31 +0000 (15:28 +0100)]
patch 8.2.5001: checking translations affects the search pattern history

Problem:    Checking translations affects the search pattern history.
Solution:   Use "keeppatterns". (Doug Kearns)

2 years agopatch 8.2.5000: no patch for documentation updates v8.2.5000
Bram Moolenaar [Sun, 22 May 2022 13:50:16 +0000 (14:50 +0100)]
patch 8.2.5000: no patch for documentation updates

Problem:    No patch for documentation updates.
Solution:   Update documentation files.

2 years agopatch 8.2.4999: filetype test table is not properly sorted v8.2.4999
Bram Moolenaar [Sun, 22 May 2022 13:26:54 +0000 (14:26 +0100)]
patch 8.2.4999: filetype test table is not properly sorted

Problem:    Filetype test table is not properly sorted.
Solution:   Sort by filetype. (Doug Kearns)

2 years agopatch 8.2.4998: Vim9: crash when using multiple funcref() v8.2.4998
Bram Moolenaar [Sun, 22 May 2022 12:45:52 +0000 (13:45 +0100)]
patch 8.2.4998: Vim9: crash when using multiple funcref()

Problem:    Vim9: crash when using multiple funcref().
Solution:   Check if varargs type is NULL. (closes #10467)

2 years agopatch 8.2.4997: Python: changing hidden buffer can cause display mess up v8.2.4997
Bram Moolenaar [Sun, 22 May 2022 11:23:48 +0000 (12:23 +0100)]
patch 8.2.4997: Python: changing hidden buffer can cause display mess up

Problem:    Python: changing hidden buffer can cause the display to be messed
            up.
Solution:   Do not mark changed lines when using another buffer. (Paul Ollis,
            closes #10437, closes #7972)

2 years agopatch 8.2.4996: setbufline() may change Visual selection v8.2.4996
Bram Moolenaar [Sun, 22 May 2022 10:59:25 +0000 (11:59 +0100)]
patch 8.2.4996: setbufline() may change Visual selection

Problem:    setbufline() may change Visual selection. (Qiming Zhao)
Solution:   Disable Visual mode when using another buffer. (closes #10466)

2 years agopatch 8.2.4995: still a compiler warning for possibly uninitialized variable v8.2.4995
Bram Moolenaar [Sat, 21 May 2022 20:55:55 +0000 (21:55 +0100)]
patch 8.2.4995: still a compiler warning for possibly uninitialized variable

Problem:    Still a compiler warning for possibly uninitialized variable.
            (Tony Mechelynck)
Solution:   Initialize variables.

2 years agopatch 8.2.4994: tests are using legacy functions v8.2.4994
Bram Moolenaar [Sat, 21 May 2022 20:30:50 +0000 (21:30 +0100)]
patch 8.2.4994: tests are using legacy functions

Problem:    Tests are using legacy functions.
Solution:   Convert a few tests to use :def functions.

2 years agopatch 8.2.4993: smart/C/lisp indenting is optional v8.2.4993
Bram Moolenaar [Sat, 21 May 2022 19:17:31 +0000 (20:17 +0100)]
patch 8.2.4993: smart/C/lisp indenting is optional

Problem:    smart/C/lisp indenting is optional, which makes the code more
            complex, while it only reduces the executable size a bit.
Solution:   Graduate FEAT_CINDENT, FEAT_SMARTINDENT and FEAT_LISP.

2 years agopatch 8.2.4992: compiler warning for possibly uninitialized variable v8.2.4992
Bram Moolenaar [Sat, 21 May 2022 17:56:58 +0000 (18:56 +0100)]
patch 8.2.4992: compiler warning for possibly uninitialized variable

Problem:    Compiler warning for possibly uninitialized variable. (Tony
            Mechelynck)
Solution:   Initialize variable in the caller instead of in the function.

2 years agopatch 8.2.4991: no test for hwat patch 8.1.0535 fixes v8.2.4991
zeertzjq [Sat, 21 May 2022 15:34:38 +0000 (16:34 +0100)]
patch 8.2.4991: no test for hwat patch 8.1.0535 fixes

Problem:    No test for hwat patch 8.1.0535 fixes.
Solution:   Add a test. (closes #10462)

2 years agopatch 8.2.4990: memory leak when :defcompile fails v8.2.4990
Bram Moolenaar [Sat, 21 May 2022 15:28:42 +0000 (16:28 +0100)]
patch 8.2.4990: memory leak when :defcompile fails

Problem:    Memory leak when :defcompile fails.
Solution:   Free fname when returning early.

2 years agopatch 8.2.4989: cannot specify a function name for :defcompile v8.2.4989
Bram Moolenaar [Sat, 21 May 2022 14:39:02 +0000 (15:39 +0100)]
patch 8.2.4989: cannot specify a function name for :defcompile

Problem:    Cannot specify a function name for :defcompile.
Solution:   Implement a function name argument for :defcompile.

2 years agoUpdate runtime files.
Bram Moolenaar [Sat, 21 May 2022 12:08:16 +0000 (13:08 +0100)]
Update runtime files.

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)