vim
2 years agopatch 9.0.0148: a "below" aligned text property gets 'showbreak' displayed v9.0.0148
Bram Moolenaar [Fri, 5 Aug 2022 20:39:30 +0000 (21:39 +0100)]
patch 9.0.0148: a "below" aligned text property gets 'showbreak' displayed

Problem:    A "below" aligned text property gets 'showbreak' displayed.
Solution:   Do not use 'showbreak' before or in virtual text. (issue #10851)

2 years agopatch 9.0.0147: cursor positioned wrong after two "below" text properties v9.0.0147
Bram Moolenaar [Fri, 5 Aug 2022 19:25:50 +0000 (20:25 +0100)]
patch 9.0.0147: cursor positioned wrong after two "below" text properties

Problem:    Cursor positioned wrong after two text properties with virtual
            text and "below" alignment. (Tim Pope)
Solution:   Do not stop after a text property using MAXCOL. (closes #10849)

2 years agopatch 9.0.0146: missing part of change for "override" flag v9.0.0146
Bram Moolenaar [Fri, 5 Aug 2022 19:03:55 +0000 (20:03 +0100)]
patch 9.0.0146: missing part of change for "override" flag

Problem:    Missing part of change for "override" flag.
Solution:   Add the missing change.

2 years agopatch 9.0.0145: substitute that joins lines drops text properties v9.0.0145
Bram Moolenaar [Fri, 5 Aug 2022 18:46:48 +0000 (19:46 +0100)]
patch 9.0.0145: substitute that joins lines drops text properties

Problem:    Substitute that joins lines drops text properties.
Solution:   Move text properties of the last line to the new line.

2 years agopatch 9.0.0144: text property cannot override 'cursorline' highlight v9.0.0144
Bram Moolenaar [Fri, 5 Aug 2022 16:05:04 +0000 (17:05 +0100)]
patch 9.0.0144: text property cannot override 'cursorline' highlight

Problem:    Text property cannot override 'cursorline' highlight.
Solution:   Add the "override" flag to prop_type_add(). (closes #5533,
            closes #8225).

2 years agopatch 9.0.0143: cursor positioned after virtual text in empty line v9.0.0143
Bram Moolenaar [Fri, 5 Aug 2022 12:07:23 +0000 (13:07 +0100)]
patch 9.0.0143: cursor positioned after virtual text in empty line

Problem:    Cursor positioned after virtual text in empty line.
Solution:   Keep cursor in the first column. (closes #10786)

2 years agopatch 9.0.0142: crash when adding and removing virtual text v9.0.0142
Bram Moolenaar [Fri, 5 Aug 2022 10:45:17 +0000 (11:45 +0100)]
patch 9.0.0142: crash when adding and removing virtual text

Problem:    Crash when adding and removing virtual text. (Ben Jackson)
Solution:   Check that the text of the text property still exists.

2 years agopatch 9.0.0141: "delmenu" does not remove autocmmands v9.0.0141
zeertzjq [Fri, 5 Aug 2022 09:52:30 +0000 (10:52 +0100)]
patch 9.0.0141: "delmenu" does not remove autocmmands

Problem:    "delmenu" does not remove autocmmands. Running menu test function
            alone fails.
Solution:   Delete autocommands Make sure there is at least one menu.
            (closes #10848)

2 years agopatch 9.0.0140: execute() does not use the "legacy" command modifier v9.0.0140
Kota Kato [Thu, 4 Aug 2022 17:50:14 +0000 (18:50 +0100)]
patch 9.0.0140: execute() does not use the "legacy" command modifier

Problem:    execute() does not use the "legacy" command modifier.
Solution:   pass the command modifier in sticky_cmdmod_flags. (Kota Kato,
            closes #10845)

2 years agopatch 9.0.0139: truncating virtual text after a line not implemented v9.0.0139
Bram Moolenaar [Thu, 4 Aug 2022 14:03:48 +0000 (15:03 +0100)]
patch 9.0.0139: truncating virtual text after a line not implemented

Problem:    Truncating virtual text after a line not implemented.
            Cursor positioning wrong with Newline in the text.
Solution:   Implement truncating.  Disallow control characters in the text.
            (closes #10842)

2 years agopatch 9.0.0138: not enough characters accepted for 'spellfile' v9.0.0138
Bram Moolenaar [Thu, 4 Aug 2022 12:01:48 +0000 (13:01 +0100)]
patch 9.0.0138: not enough characters accepted for 'spellfile'

Problem:    Not enough characters accepted for 'spellfile'.
Solution:   Add vim_is_fname_char() and use it for 'spellfile'.

2 years agopatch 9.0.0137: debugger test may fail when $CWD is very long v9.0.0137
James McCoy [Wed, 3 Aug 2022 15:13:27 +0000 (16:13 +0100)]
patch 9.0.0137: debugger test may fail when $CWD is very long

Problem:    Debugger test may fail when $CWD is very long.
Solution:   Skip the test if the directory name is too long. (James McCoy,
            closes #10837)

2 years agopatch 9.0.0136: after CTRL-Left-mouse click a mouse scroll also has CTRL v9.0.0136
Bram Moolenaar [Wed, 3 Aug 2022 14:48:33 +0000 (15:48 +0100)]
patch 9.0.0136: after CTRL-Left-mouse click a mouse scroll also has CTRL

Problem:    After CTRL-Left-mouse click a mouse scroll also has CTRL.
Solution:   Reset orig_mouse_code also for wheel events. (closes #10840)

2 years agopatch 9.0.0135: comment about tabpage line above the wrong code v9.0.0135
zeertzjq [Tue, 2 Aug 2022 11:15:51 +0000 (12:15 +0100)]
patch 9.0.0135: comment about tabpage line above the wrong code

Problem:    Comment about tabpage line above the wrong code.
Solution:   Move the comment. (closes #10836)

2 years agopatch 9.0.0134: no test for text property with column zero v9.0.0134
Bram Moolenaar [Tue, 2 Aug 2022 10:48:53 +0000 (11:48 +0100)]
patch 9.0.0134: no test for text property with column zero

Problem:    No test for text property with column zero.
Solution:   Add a test.  Add message to assert for no open popups.

2 years agopatch 9.0.0133: virtual text after line moves to joined line v9.0.0133
Bram Moolenaar [Mon, 1 Aug 2022 21:18:50 +0000 (22:18 +0100)]
patch 9.0.0133: virtual text after line moves to joined line

Problem:    Virtual text after line moves to joined line. (Yegappan
            Lakshmanan)
Solution:   When joining lines only keep virtual text after the last line.

2 years agopatch 9.0.0132: multi-byte characters in virtual text not handled correctly v9.0.0132
Bram Moolenaar [Mon, 1 Aug 2022 15:51:02 +0000 (16:51 +0100)]
patch 9.0.0132: multi-byte characters in virtual text not handled correctly

Problem:    Multi-byte characters in virtual text not handled correctly.
Solution:   Count screen cells instead of bytes.

2 years agopatch 9.0.0131: virtual text with Tab is not displayed correctly v9.0.0131
Bram Moolenaar [Mon, 1 Aug 2022 15:11:06 +0000 (16:11 +0100)]
patch 9.0.0131: virtual text with Tab is not displayed correctly

Problem:    Virtual text with Tab is not displayed correctly.
Solution:   Change any Tab to a space.

2 years agopatch 9.0.0130: cursor position wrong when inserting around virtual text v9.0.0130
Bram Moolenaar [Mon, 1 Aug 2022 14:52:55 +0000 (15:52 +0100)]
patch 9.0.0130: cursor position wrong when inserting around virtual text

Problem:    Cursor position wrong when inserting around virtual text.
Solution:   Update the cursor position properly.

2 years agoUpdate runtime files
Bram Moolenaar [Mon, 1 Aug 2022 14:09:53 +0000 (15:09 +0100)]
Update runtime files

2 years agopatch 9.0.0129: compiler warning for int/size_t usage v9.0.0129
Mike Williams [Mon, 1 Aug 2022 13:00:31 +0000 (14:00 +0100)]
patch 9.0.0129: compiler warning for int/size_t usage

Problem:    Compiler warning for int/size_t usage.
Solution:   Add a type cast. (Mike Williams, closes #10830)

2 years agopatch 9.0.0128: Coverity complains about possible double free v9.0.0128
Bram Moolenaar [Mon, 1 Aug 2022 11:06:40 +0000 (12:06 +0100)]
patch 9.0.0128: Coverity complains about possible double free

Problem:    Coverity complains about possible double free.
Solution:   Clear the pointer to avoid warnings.

2 years agopatch 9.0.0127: unused variable v9.0.0127
zeertzjq [Mon, 1 Aug 2022 10:49:45 +0000 (11:49 +0100)]
patch 9.0.0127: unused variable

Problem:    Unused variable.
Solution:   Remove the variable. (closes #10829)

2 years agopatch 9.0.0126: expanding file names fails in dir with more than 255 entries v9.0.0126
John Drouhard [Mon, 1 Aug 2022 10:38:17 +0000 (11:38 +0100)]
patch 9.0.0126: expanding file names fails in dir with more than 255 entries

Problem:    Expanding file names fails in directory with more than 255
            entries.
Solution:   Use an int instead of char_u to count. (John Drouhard,
            closes #10818)

2 years agopatch 9.0.0125: cursor positioned wrong with virtual text after the line v9.0.0125
Bram Moolenaar [Mon, 1 Aug 2022 10:17:40 +0000 (11:17 +0100)]
patch 9.0.0125: cursor positioned wrong with virtual text after the line

Problem:    Cursor positioned wrong with virtual text after the line.
Solution:   Clear cts_with_trailing.

2 years agopatch 9.0.0124: code has more indent than needed v9.0.0124
zeertzjq [Sun, 31 Jul 2022 17:34:32 +0000 (18:34 +0100)]
patch 9.0.0124: code has more indent than needed

Problem:    Code has more indent than needed.
Solution:   Use continue and return statements. (closes #10824)

2 years agopatch 9.0.0123: cannot build with small features v9.0.0123
Bram Moolenaar [Sun, 31 Jul 2022 17:03:57 +0000 (18:03 +0100)]
patch 9.0.0123: cannot build with small features

Problem:    Cannot build with small features.
Solution:   Add #ifdef.

2 years agopatch 9.0.0122: breakindent test fails v9.0.0122
Bram Moolenaar [Sun, 31 Jul 2022 17:00:10 +0000 (18:00 +0100)]
patch 9.0.0122: breakindent test fails

Problem:    Breakindent test fails.
Solution:   Fix condition.

2 years agopatch 9.0.0121: cannot put virtual text after or below a line v9.0.0121
Bram Moolenaar [Sun, 31 Jul 2022 16:12:43 +0000 (17:12 +0100)]
patch 9.0.0121: cannot put virtual text after or below a line

Problem:    Cannot put virtual text after or below a line.
Solution:   Add "text_align" and "text_wrap" arguments.

2 years agopatch 9.0.0120: MS-Windows GUI: cannot use AltGr + Space v9.0.0120
Anton Sharonov [Sun, 31 Jul 2022 11:26:05 +0000 (12:26 +0100)]
patch 9.0.0120: MS-Windows GUI: cannot use AltGr + Space

Problem:    MS-Windows GUI: cannot use AltGr + Space.
Solution:   Check for VK_MENU instead of VK_LMENU. (Anton Sharonov,
            closes #10820, closes #10753)

2 years agopatch 9.0.0119: tiny chance that creating a backup file fails v9.0.0119
K.Takata [Sun, 31 Jul 2022 10:50:42 +0000 (11:50 +0100)]
patch 9.0.0119: tiny chance that creating a backup file fails

Problem:    Tiny chance that creating a backup file fails.
Solution:   Check for EEXIST error. (Ken Takata, closes #10821)

2 years agopatch 9.0.0118: no test for what patch 9.0.0155 fixes v9.0.0118
zeertzjq [Sun, 31 Jul 2022 10:37:20 +0000 (11:37 +0100)]
patch 9.0.0118: no test for what patch 9.0.0155 fixes

Problem:    No test for what patch 9.0.0155 fixes.
Solution:   Add a test. Fix typos.  (closes #10822)

2 years agopatch 9.0.0117: text of removed textprop with text is not freed v9.0.0117
Bram Moolenaar [Sat, 30 Jul 2022 21:17:18 +0000 (22:17 +0100)]
patch 9.0.0117: text of removed textprop with text is not freed

Problem:    Text of removed textprop with text is not freed.
Solution:   Free the text when the property is removed.  Reduce the array size
            to ignore NULLs at the end.

2 years agopatch 9.0.0116: virtual text not displayed if 'signcolumn' is "yes" v9.0.0116
Bram Moolenaar [Sat, 30 Jul 2022 20:33:46 +0000 (21:33 +0100)]
patch 9.0.0116: virtual text not displayed if 'signcolumn' is "yes"

Problem:    Virtual text not displayed if 'signcolumn' is "yes".
Solution:   Set c_extra and c_final to NUL.

2 years agopatch 9.0.0115: when 'cmdheight' is zero pressing ':' may scroll a window v9.0.0115
Bram Moolenaar [Sat, 30 Jul 2022 18:10:06 +0000 (19:10 +0100)]
patch 9.0.0115: when 'cmdheight' is zero pressing ':' may scroll a window

Problem:    When 'cmdheight' is zero pressing ':' may scroll a window.
Solution:   Add the made_cmdheight_nonzero flag and set 'scrolloff' to zero.

2 years agopatch 9.0.0114: the command line takes up space even when not used v9.0.0114
Shougo Matsushita [Sat, 30 Jul 2022 15:54:05 +0000 (16:54 +0100)]
patch 9.0.0114: the command line takes up space even when not used

Problem:    The command line takes up space even when not used.
Solution:   Allow for 'cmdheight' to be set to zero. (Shougo Matsushita,
            closes #10675, closes #940)

2 years agopatch 9.0.0113: has() is not strict about parsing the patch version v9.0.0113
K.Takata [Sat, 30 Jul 2022 14:43:59 +0000 (15:43 +0100)]
patch 9.0.0113: has() is not strict about parsing the patch version

Problem:    has() is not strict about parsing the patch version.
Solution:   Check the version more strictly. (Ken Takata, closes #10752)

2 years agopatch 9.0.0112: MS-Windows: test fails because file already exists v9.0.0112
Bram Moolenaar [Sat, 30 Jul 2022 14:35:12 +0000 (15:35 +0100)]
patch 9.0.0112: MS-Windows: test fails because file already exists

Problem:    MS-Windows: test fails because file already exists.
Solution:   Wait a little while until the file is gone.

2 years agopatch 9.0.0111: "nocombine" is missing from synIDattr() v9.0.0111
Bram Moolenaar [Sat, 30 Jul 2022 13:56:17 +0000 (14:56 +0100)]
patch 9.0.0111: "nocombine" is missing from synIDattr()

Problem:    "nocombine" is missing from synIDattr().
Solution:   Add "nocombine". (Muni Tanjim, closes #10816)

2 years agopatch 9.0.0110: help tag generation picks up words in code examples v9.0.0110
Carlo Teubner [Sat, 30 Jul 2022 11:03:16 +0000 (12:03 +0100)]
patch 9.0.0110: help tag generation picks up words in code examples

Problem:    Help tag generation picks up words in code examples.
Solution:   Skip over examples. (Carlo Teubner, closes #10813)

2 years agopatch 9.0.0109: writing over the end of a buffer on stack v9.0.0109
Bram Moolenaar [Sat, 30 Jul 2022 10:39:57 +0000 (11:39 +0100)]
patch 9.0.0109: writing over the end of a buffer on stack

Problem:    Writing over the end of a buffer on stack when making list of
            spell suggestions.
Solution:   Make sure suggested word is not too long. (closes #10812)

2 years agopatch 9.0.0108: configure check for timer_create may give wrong error v9.0.0108
Bram Moolenaar [Sat, 30 Jul 2022 10:00:50 +0000 (11:00 +0100)]
patch 9.0.0108: configure check for timer_create may give wrong error

Problem:    Configure check for timer_create may give wrong error.
Solution:   Give a warning instead of an error.

2 years agoUpdate runtime files
Bram Moolenaar [Fri, 29 Jul 2022 20:36:21 +0000 (21:36 +0100)]
Update runtime files

2 years agopatch 9.0.0107: condition always has the same value v9.0.0107
Bram Moolenaar [Fri, 29 Jul 2022 18:50:41 +0000 (19:50 +0100)]
patch 9.0.0107: condition always has the same value

Problem:    Condition always has the same value.
Solution:   Remove the condition.

2 years agopatch 9.0.0106: illegal byte regexp test doesn't fail when fix is reversed v9.0.0106
Bram Moolenaar [Fri, 29 Jul 2022 17:32:20 +0000 (18:32 +0100)]
patch 9.0.0106: illegal byte regexp test doesn't fail when fix is reversed

Problem:    Illegal byte regexp test doesn't fail when fix is reversed.
Solution:   Make sure illegal bytes end up in sourced script file.

2 years agopatch 9.0.0105: illegal memory access when pattern starts with illegal byte v9.0.0105
Bram Moolenaar [Fri, 29 Jul 2022 15:22:25 +0000 (16:22 +0100)]
patch 9.0.0105: illegal memory access when pattern starts with illegal byte

Problem:    Illegal memory access when pattern starts with illegal byte.
Solution:   Do not match a character with an illegal byte.

2 years agopatch 9.0.0104: going beyond allocated memory when evaluating string constant v9.0.0104
Bram Moolenaar [Fri, 29 Jul 2022 14:28:27 +0000 (15:28 +0100)]
patch 9.0.0104: going beyond allocated memory when evaluating string constant

Problem:    Going beyond allocated memory when evaluating string constant.
Solution:   Properly skip over <Key> form.

2 years agopatch 9.0.0103: if running configure with cached results -lrt may be missing v9.0.0103
Bram Moolenaar [Thu, 28 Jul 2022 21:39:54 +0000 (22:39 +0100)]
patch 9.0.0103: if running configure with cached results -lrt may be missing

Problem:    If running configure with cached results -lrt may be missing.
Solution:   Use two cache variables, one without and one with -lrt.
            (closes #10799)  Swap checks to avoid adding -lrt unnecessarily.

2 years agopatch 9.0.0102: reading past end of line with insert mode completion v9.0.0102
Bram Moolenaar [Thu, 28 Jul 2022 20:51:37 +0000 (21:51 +0100)]
patch 9.0.0102: reading past end of line with insert mode completion

Problem:    Reading past end of line with insert mode completion.
Solution:   Check text length.

2 years agopatch 9.0.0101: invalid memory access in diff mode with "dp" and undo v9.0.0101
Bram Moolenaar [Thu, 28 Jul 2022 17:44:27 +0000 (18:44 +0100)]
patch 9.0.0101: invalid memory access in diff mode with "dp" and undo

Problem:    Invalid memory access in diff mode with "dp" and undo.
Solution:   Make sure the line number does not go below one.

2 years agopatch 9.0.0100: get hit-enter prompt for system() when '!' is in 'guioptions' v9.0.0100
Bram Moolenaar [Thu, 28 Jul 2022 11:54:08 +0000 (12:54 +0100)]
patch 9.0.0100: get hit-enter prompt for system() when '!' is in 'guioptions'

Problem:    Get hit-enter prompt for system() when '!' is in 'guioptions'.
Solution:   Do not call wait_return() when not redrawing. (closes #3327)

2 years agopatch 9.0.0099: scrollback can be wrong after redrawing the command line v9.0.0099
zeertzjq [Thu, 28 Jul 2022 11:34:09 +0000 (12:34 +0100)]
patch 9.0.0099: scrollback can be wrong after redrawing the command line

Problem:    Scrollback can be wrong after redrawing the command line.
Solution:   Clear unfinished scrollback when redrawing. (closes #10807)

2 years agopatch 9.0.0098: missing include file in timer_create configure check v9.0.0098
Bram Moolenaar [Thu, 28 Jul 2022 11:09:04 +0000 (12:09 +0100)]
patch 9.0.0098: missing include file in timer_create configure check

Problem:    missing include file in timer_create configure check.
Solution:   Inlucde stdlib.h.

2 years agopatch 9.0.0097: long quickfix line is truncated for :clist v9.0.0097
Bram Moolenaar [Thu, 28 Jul 2022 10:56:01 +0000 (11:56 +0100)]
patch 9.0.0097: long quickfix line is truncated for :clist

Problem:    Long quickfix line is truncated for :clist.
Solution:   Allocate a buffer if needed.

2 years agopatch 9.0.0096: flag "new_value_alloced" is always true v9.0.0096
zeertzjq [Wed, 27 Jul 2022 17:26:03 +0000 (18:26 +0100)]
patch 9.0.0096: flag "new_value_alloced" is always true

Problem:    Flag "new_value_alloced" is always true.
Solution:   Remove "new_value_alloced". (closes #10792)

2 years agopatch 9.0.0095: conditions are always true v9.0.0095
zeertzjq [Wed, 27 Jul 2022 14:48:45 +0000 (15:48 +0100)]
patch 9.0.0095: conditions are always true

Problem:    Conditions are always true.
Solution:   Remove useless conditions. (closes #10802)

2 years agopatch 9.0.0094: cursor restored unexpected with nested autocommand v9.0.0094
Bram Moolenaar [Wed, 27 Jul 2022 14:23:35 +0000 (15:23 +0100)]
patch 9.0.0094: cursor restored unexpected with nested autocommand

Problem:    Cursor restored unexpected with nested autocommand.
Solution:   Do not restore the cursor when it was moved intentionally.
            (closes #10780)

2 years agopatch 9.0.0093: sway config files are recognized as i3config v9.0.0093
James Eapen [Wed, 27 Jul 2022 14:07:06 +0000 (15:07 +0100)]
patch 9.0.0093: sway config files are recognized as i3config

Problem:    Sway config files are recognized as i3config.
Solution:   Recognize swayconfig separately. (James Eapen, closes #10672)

2 years agopatch 9.0.0092: plugins cannot change v:completed_item v9.0.0092
Shougo Matsushita [Wed, 27 Jul 2022 13:40:00 +0000 (14:40 +0100)]
patch 9.0.0092: plugins cannot change v:completed_item

Problem:    Plugins cannot change v:completed_item.
Solution:   Make v:completed_item writeable. (Shougo Matsushita,
            closes #10801)

2 years agopatch 9.0.0091: duplicate error number v9.0.0091
Bram Moolenaar [Wed, 27 Jul 2022 12:18:14 +0000 (13:18 +0100)]
patch 9.0.0091: duplicate error number

Problem:    Duplicate error number.
Solution:   Use unique error number.

2 years agopatch 9.0.0090: no error when assigning bool to a string option v9.0.0090
Bram Moolenaar [Wed, 27 Jul 2022 11:30:13 +0000 (12:30 +0100)]
patch 9.0.0090: no error when assigning bool to a string option

Problem:    No error when assigning bool to a string option with setwinvar().
Solution:   Give an error (closes #10766)

2 years agopatch 9.0.0089: fuzzy argument completion doesn't work for shell commands v9.0.0089
Yegappan Lakshmanan [Tue, 26 Jul 2022 21:01:36 +0000 (22:01 +0100)]
patch 9.0.0089: fuzzy argument completion doesn't work for shell commands

Problem:    Fuzzy argument completion doesn't work for shell commands.
Solution:   Check for cmdidx not being CMD_bang. (Yegappan Lakshmanan,
            closes #10769)

2 years agopatch 9.0.0088: pattern for detecting bitbake files is not sufficient v9.0.0088
Gregory Anders [Tue, 26 Jul 2022 20:42:03 +0000 (21:42 +0100)]
patch 9.0.0088: pattern for detecting bitbake files is not sufficient

Problem:    Pattern for detecting bitbake files is not sufficient.
Solution:   Adjust the pattern. (Gregory Anders, closes #10743)

2 years agopatch 9.0.0087: MS-Windows: CTRL-[ on Belgian keyboard does not work like Esc v9.0.0087
Anton Sharonov [Tue, 26 Jul 2022 20:26:18 +0000 (21:26 +0100)]
patch 9.0.0087: MS-Windows: CTRL-[ on Belgian keyboard does not work like Esc

Problem:    MS-Windows: CTRL-[ on Belgian keyboard does not work like Esc.
Solution:   Figure out what the key code means. (Anton Sharonov,
            closes #10687, closes #10454)

2 years agopatch 9.0.0086: tabline is not redrawn when entering command line v9.0.0086
zeertzjq [Tue, 26 Jul 2022 19:42:25 +0000 (20:42 +0100)]
patch 9.0.0086: tabline is not redrawn when entering command line

Problem:    Tabline is not redrawn when entering command line.
Solution:   Set "redraw_tabline". (closes #10771)

2 years agopatch 9.0.0085: ":write" fails after ":file name" and the ":edit" v9.0.0085
ii14 [Tue, 26 Jul 2022 18:44:56 +0000 (19:44 +0100)]
patch 9.0.0085: ":write" fails after ":file name" and the ":edit"

Problem:    ":write" fails after ":file name" and the ":edit".
Solution:   Reset BF_NOTEDITED when using ":edit". (closes #10790)

2 years agopatch 9.0.0084: using "terraform" filetype for .tfvars file is bad v9.0.0084
Bram Moolenaar [Tue, 26 Jul 2022 18:18:28 +0000 (19:18 +0100)]
patch 9.0.0084: using "terraform" filetype for .tfvars file is bad

Problem:    Using "terraform" filetype for .tfvars file is bad.
Solution:   use "terraform-vars", so that different completion and other
            mechanisms can be used. (Radek Simko, closes #10755)

2 years agopatch 9.0.0083: ModeChanged event not triggered when leaving cmdline window v9.0.0083
zeertzjq [Tue, 26 Jul 2022 17:12:38 +0000 (18:12 +0100)]
patch 9.0.0083: ModeChanged event not triggered when leaving cmdline window

Problem:    ModeChanged event not triggered when leaving the cmdline window.
Solution:   Call may_trigger_modechanged(). (closes #10791)

2 years agopatch 9.0.0082: cannot interrupt global command from command line v9.0.0082
zeertzjq [Tue, 26 Jul 2022 16:48:13 +0000 (17:48 +0100)]
patch 9.0.0082: cannot interrupt global command from command line

Problem:    Cannot interrupt global command from command line.
Solution:   Reset got_int in another place. (closes #10739)

2 years agopatch 9.0.0081: command line completion of user command may have duplicates v9.0.0081
Bram Moolenaar [Tue, 26 Jul 2022 16:23:47 +0000 (17:23 +0100)]
patch 9.0.0081: command line completion of user command may have duplicates

Problem:    Command line completion of user command may have duplicates.
            (Dani Dickstein)
Solution:   Skip global user command if an identical buffer-local one is
            defined. (closes #10797)

2 years agopatch 9.0.0080: compiler warning for size_t to int conversion v9.0.0080
Mike Williams [Tue, 26 Jul 2022 15:03:42 +0000 (16:03 +0100)]
patch 9.0.0080: compiler warning for size_t to int conversion

Problem:    Compiler warning for size_t to int conversion.
Solution:   Add type casts. (Mike Williams, closes #10795)

2 years agopatch 9.0.0079: error in autoload script not reported for 'foldexpr' v9.0.0079
Bram Moolenaar [Tue, 26 Jul 2022 14:10:56 +0000 (15:10 +0100)]
patch 9.0.0079: error in autoload script not reported for 'foldexpr'

Problem:    Error in autoload script not reported for 'foldexpr'.
Solution:   Reset "emsg_off" when auto-loading a script. (closes #10685)

2 years agopatch 9.0.0078: star register is unexpectedly changed when deleting v9.0.0078
Ernie Rael [Tue, 26 Jul 2022 13:44:36 +0000 (14:44 +0100)]
patch 9.0.0078: star register is unexpectedly changed when deleting

Problem:    Star register is changed when deleting and both "unnamed" and
            "unnamedplus" are in 'clipboard'.
Solution:   Make the use of the star register work as documented. (Ernie Rael,
            closes #10669)

2 years agopatch 9.0.0077: wrong restored cursor position when switching window in autocmd v9.0.0077
Bram Moolenaar [Tue, 26 Jul 2022 12:47:13 +0000 (13:47 +0100)]
patch 9.0.0077: wrong restored cursor position when switching window in autocmd

Problem:    When switching window in autocmd the restored cursor position may
            be wrong.
Solution:   Do not restore the cursor if it was not set. (closes #10775)

2 years agopatch 9.0.0076: no test for what patch 8.1.1424 fixes v9.0.0076
zeertzjq [Tue, 26 Jul 2022 11:24:41 +0000 (12:24 +0100)]
patch 9.0.0076: no test for what patch 8.1.1424 fixes

Problem:    No test for what patch 8.1.1424 fixes.
Solution:   Add a test. (closes #10789)

2 years agopatch 9.0.0075: some compilers warn for using an uninitialized variable v9.0.0075
Bram Moolenaar [Tue, 26 Jul 2022 10:42:34 +0000 (11:42 +0100)]
patch 9.0.0075: some compilers warn for using an uninitialized variable

Problem:    Some compilers warn for using an uninitialized variable. (Tony
            Mechelynck)
Solution:   Initialize the variable.

2 years agopatch 9.0.0074: Coverity warns for double free v9.0.0074
Bram Moolenaar [Tue, 26 Jul 2022 10:20:48 +0000 (11:20 +0100)]
patch 9.0.0074: Coverity warns for double free

Problem:    Coverity warns for double free.
Solution:   Reset cts_text_prop_count when freeing cts_text_props.

2 years agopatch 9.0.0073: too many files recognized as bsdl v9.0.0073
Martin Tournoij [Mon, 25 Jul 2022 20:40:06 +0000 (21:40 +0100)]
patch 9.0.0073: too many files recognized as bsdl

Problem:    Too many files recognized as bsdl.
Solution:   Use pattern "*.bsd" instead of "*bsd". (Martin Tournoij,
            closes #10783)

2 years agopatch 9.0.0072: compiler warning for uninitialized variable v9.0.0072
Bram Moolenaar [Mon, 25 Jul 2022 20:15:45 +0000 (21:15 +0100)]
patch 9.0.0072: compiler warning for uninitialized variable

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

2 years agopatch 9.0.0071: command overlaps with printed text in scrollback v9.0.0071
zeertzjq [Mon, 25 Jul 2022 18:50:57 +0000 (19:50 +0100)]
patch 9.0.0071: command overlaps with printed text in scrollback

Problem:    Command overlaps with printed text in scrollback.
Solution:   Clear until end-of-line and use correct message chunk.
            (closes #10765, closes #10764)

2 years agopatch 9.0.0070: using utfc_ptr2char_len() when length is negative v9.0.0070
zeertzjq [Mon, 25 Jul 2022 18:42:02 +0000 (19:42 +0100)]
patch 9.0.0070: using utfc_ptr2char_len() when length is negative

Problem:    Using utfc_ptr2char_len() when length is negative.
Solution:   Check value of length. (closes #10760)

2 years agopatch 9.0.0069: leaking memory when using text prop with inserted text v9.0.0069
Bram Moolenaar [Mon, 25 Jul 2022 18:07:04 +0000 (19:07 +0100)]
patch 9.0.0069: leaking memory when using text prop with inserted text

Problem:    Leaking memory when using text prop with inserted text.
Solution:   Clear the growarray with text.

2 years agopatch 9.0.0068: build fails with tiny features v9.0.0068
Bram Moolenaar [Mon, 25 Jul 2022 17:35:15 +0000 (18:35 +0100)]
patch 9.0.0068: build fails with tiny features

Problem:    Build fails with tiny features.
Solution:   Add #ifdef.

2 years agopatch 9.0.0067: cannot show virtual text v9.0.0067
Bram Moolenaar [Mon, 25 Jul 2022 17:13:54 +0000 (18:13 +0100)]
patch 9.0.0067: cannot show virtual text

Problem:    Cannot show virtual text.
Solution:   Initial changes for virtual text support, using text properties.

2 years agoUpdate runtime files
Bram Moolenaar [Mon, 25 Jul 2022 14:42:07 +0000 (15:42 +0100)]
Update runtime files

2 years agopatch 9.0.0066: switching window uneccarily when getting buffer options v9.0.0066
zeertzjq [Mon, 25 Jul 2022 11:28:09 +0000 (12:28 +0100)]
patch 9.0.0066: switching window uneccarily when getting buffer options

Problem:    Switching window uneccarily when getting buffer options.
Solution:   Do not switch window when getting buffer options. (closes #10767)

2 years agopatch 9.0.0065: cross-compiling doesn't work because of timer_create check v9.0.0065
Richard Purdie [Sun, 24 Jul 2022 19:48:00 +0000 (20:48 +0100)]
patch 9.0.0065: cross-compiling doesn't work because of timer_create check

Problem:    Cross-compiling doesn't work because of timer_create check.
Solution:   Use AC_CACHE_CHECK(). (Richard Purdie, closes #10777)

2 years agopatch 9.0.0064: confusing error when using "q:" in command line window v9.0.0064
Bram Moolenaar [Sun, 24 Jul 2022 19:08:01 +0000 (20:08 +0100)]
patch 9.0.0064: confusing error when using "q:" in command line window

Problem:    Confusing error when using "q:" in command line window.
Solution:   Check for the situation and give a better error message.
            (closes #10756)

2 years agopatch 9.0.0063: too many type casts for dict_get functions v9.0.0063
Bram Moolenaar [Sat, 23 Jul 2022 08:52:04 +0000 (09:52 +0100)]
patch 9.0.0063: too many type casts for dict_get functions

Problem:    Too many type casts for dict_get functions.
Solution:   Change the key argument from "char_u *" to "char *".

2 years agopatch 9.0.0062: compiler warnings for signed/unsigned char v9.0.0062
Bram Moolenaar [Sat, 23 Jul 2022 08:22:47 +0000 (09:22 +0100)]
patch 9.0.0062: compiler warnings for signed/unsigned char

Problem:    Compiler warnings for signed/unsigned char.
Solution:   Add type casts. (John Marriott)

2 years agopatch 9.0.0061: ml_get error with nested autocommand v9.0.0061
Bram Moolenaar [Sat, 23 Jul 2022 08:06:48 +0000 (09:06 +0100)]
patch 9.0.0061: ml_get error with nested autocommand

Problem:    ml_get error with nested autocommand.
Solution:   Also check line numbers for a nested autocommand. (closes #10761)

2 years agopatch 9.0.0060: accessing uninitialized memory when completing long line v9.0.0060
Bram Moolenaar [Sat, 23 Jul 2022 05:53:08 +0000 (06:53 +0100)]
patch 9.0.0060: accessing uninitialized memory when completing long line

Problem:    Accessing uninitialized memory when completing long line.
Solution:   Terminate string with NUL.

2 years agopatch 9.0.0059: test file has wrong name v9.0.0059
zeertzjq [Sat, 23 Jul 2022 05:25:29 +0000 (06:25 +0100)]
patch 9.0.0059: test file has wrong name

Problem:    Test file has wrong name.
Solution:   Rename the file.  Various small fixes. (closes #10674)

2 years agopatch 9.0.0058: Win32: cannot test low level events v9.0.0058
Yegappan Lakshmanan [Sat, 23 Jul 2022 04:04:16 +0000 (05:04 +0100)]
patch 9.0.0058: Win32: cannot test low level events

Problem:    Win32: cannot test low level events.
Solution:   Add "sendevent" to test_gui_event(). (Yegappan Lakshmanan,
            closes #10679)

2 years agopatch 9.0.0057: has('patch-xxx') returns true v9.0.0057
Bram Moolenaar [Mon, 18 Jul 2022 19:48:50 +0000 (20:48 +0100)]
patch 9.0.0057: has('patch-xxx') returns true

Problem:    has('patch-xxx') returns true.
Solution:   Check for digit. (closes #10751)

2 years agopatch 9.0.0056: wrong line number reported when :cexpr fails in :def function
Bram Moolenaar [Mon, 18 Jul 2022 16:49:03 +0000 (17:49 +0100)]
patch 9.0.0056: wrong line number reported when :cexpr fails in :def function

Problem:    Wrong line number reported when :cexpr fails in :def function.
Solution:   Set line_number before executing :cexpr. (closes #10735)

2 years agopatch 9.0.0055: bitbake files are not detected v9.0.0055 v9.0.0056
Gregory Anders [Sat, 16 Jul 2022 16:46:47 +0000 (17:46 +0100)]
patch 9.0.0055: bitbake files are not detected

Problem:    Bitbake files are not detected.
Solution:   Add bitbake filetype detection by file name and contents. (Gregory
            Anders, closes #10697)

2 years agopatch 9.0.0054: compiler warning for size_t to int conversion v9.0.0054
Bram Moolenaar [Fri, 15 Jul 2022 19:45:20 +0000 (20:45 +0100)]
patch 9.0.0054: compiler warning for size_t to int conversion

Problem:    Compiler warning for size_t to int conversion.
Solution:   Add type cast. (Mike Williams, closes #10741)

2 years agopatch 9.0.0053: E1281 not tested with the old regexp engine v9.0.0053
Dominique Pelle [Thu, 14 Jul 2022 16:40:49 +0000 (17:40 +0100)]
patch 9.0.0053: E1281 not tested with the old regexp engine

Problem:    E1281 not tested with the old regexp engine.
Solution:   Loop over the values of 'regexp'. (Dominique Pellé, closes #10695)

2 years agopatch 9.0.0052: "zG" may throw an error if invalid character follows v9.0.0052
K.Takata [Thu, 14 Jul 2022 16:25:14 +0000 (17:25 +0100)]
patch 9.0.0052: "zG" may throw an error if invalid character follows

Problem:    "zG" may throw an error if invalid character follows.
Solution:   Pass the word length to valid_spell_word(). (Ken Takata,
            closes #10737)