]> granicus.if.org Git - vim/log
vim
2 years agopatch 9.0.0229: Vim9: error message for missing type is not clear v9.0.0229
Bram Moolenaar [Sat, 20 Aug 2022 11:07:58 +0000 (12:07 +0100)]
patch 9.0.0229: Vim9: error message for missing type is not clear

Problem:    Vim9: error message for missing type is not clear.
Solution:   Mention the context. (issue #10944)

2 years agoUpdate runtime files
Bram Moolenaar [Fri, 19 Aug 2022 16:15:35 +0000 (17:15 +0100)]
Update runtime files

2 years agopatch 9.0.0228: crash when pattern looks below the last line v9.0.0228
Bram Moolenaar [Fri, 19 Aug 2022 12:59:25 +0000 (13:59 +0100)]
patch 9.0.0228: crash when pattern looks below the last line

Problem:    Crash when pattern looks below the last line.
Solution:   Consider invalid lines to be empty. (closes #10938)

2 years agopatch 9.0.0227: cannot read error message when abort() is called v9.0.0227
Bram Moolenaar [Fri, 19 Aug 2022 12:17:21 +0000 (13:17 +0100)]
patch 9.0.0227: cannot read error message when abort() is called

Problem:    Cannot read error message when abort() is called.
Solution:   Output a newline before calling abort().

2 years agopatch 9.0.0226: job_start() test may fail under valgrind v9.0.0226
Bram Moolenaar [Thu, 18 Aug 2022 14:22:09 +0000 (15:22 +0100)]
patch 9.0.0226: job_start() test may fail under valgrind

Problem:    job_start() test may fail under valgrind.
Solution:   Wait until the job is running.

2 years agopatch 9.0.0225: using freed memory with multiple line breaks in expression v9.0.0225
Bram Moolenaar [Thu, 18 Aug 2022 12:28:31 +0000 (13:28 +0100)]
patch 9.0.0225: using freed memory with multiple line breaks in expression

Problem:    Using freed memory with multiple line breaks in expression.
Solution:   Free eval_tofree later.

2 years agopatch 9.0.0224: Using NULL pointer when skipping compiled code v9.0.0224
Bram Moolenaar [Wed, 17 Aug 2022 14:55:51 +0000 (15:55 +0100)]
patch 9.0.0224: Using NULL pointer when skipping compiled code

Problem:    Using NULL pointer when skipping compiled code.
Solution:   Check for skipping.

2 years agopatch 9.0.0223: typo in diffmode test v9.0.0223
zeertzjq [Wed, 17 Aug 2022 11:09:45 +0000 (12:09 +0100)]
patch 9.0.0223: typo in diffmode test

Problem:    Typo in diffmode test.
Solution:   Fix the typo. (closes #10932)

2 years agopatch 9.0.0222: no good reason why text objects are only in larger builds v9.0.0222
Bram Moolenaar [Tue, 16 Aug 2022 19:24:29 +0000 (20:24 +0100)]
patch 9.0.0222: no good reason why text objects are only in larger builds

Problem:    No good reason why text objects are only in larger builds.
Solution:   Graduate +textobjects.

2 years agopatch 9.0.0221: accessing freed memory if compiling nested function fails v9.0.0221
Bram Moolenaar [Tue, 16 Aug 2022 18:34:44 +0000 (19:34 +0100)]
patch 9.0.0221: accessing freed memory if compiling nested function fails

Problem:    Accessing freed memory if compiling nested function fails.
Solution:   Mess up the variable name so that it won't be found.

2 years agopatch 9.0.0220: invalid memory access with for loop over NULL string v9.0.0220
Bram Moolenaar [Tue, 16 Aug 2022 16:50:38 +0000 (17:50 +0100)]
patch 9.0.0220: invalid memory access with for loop over NULL string

Problem:    Invalid memory access with for loop over NULL string.
Solution:   Make sure mb_ptr2len() consistently returns zero for NUL.

2 years agopatch 9.0.0219: cannot make a funcref with "s:func" in a def function v9.0.0219
Kota Kato [Tue, 16 Aug 2022 15:09:59 +0000 (16:09 +0100)]
patch 9.0.0219: cannot make a funcref with "s:func" in a def function

Problem:    Cannot make a funcref with "s:func" in a def function in legacy
            script.
Solution:   Allow for using a lower case function name after "s:". (Kota Kato,
            closes #10926)

2 years agopatch 9.0.0218: reading before the start of the line v9.0.0218
Bram Moolenaar [Tue, 16 Aug 2022 13:51:53 +0000 (14:51 +0100)]
patch 9.0.0218: reading before the start of the line

Problem:    Reading before the start of the line.
Solution:   When displaying "$" check the column is not negative.

2 years agoUpdate runtime files
Bram Moolenaar [Mon, 15 Aug 2022 17:51:32 +0000 (18:51 +0100)]
Update runtime files

2 years agopatch 9.0.0217: 'shellslash' works differently when sourcing a script again v9.0.0217
zeertzjq [Mon, 15 Aug 2022 16:53:55 +0000 (17:53 +0100)]
patch 9.0.0217: 'shellslash' works differently when sourcing a script again

Problem:    'shellslash' works differently when sourcing a script again.
Solution:   Use the name from the script item. (closes #10920)

2 years agopatch 9.0.0216: undo earlier test sometimes fails on MS-Windows v9.0.0216
Bram Moolenaar [Mon, 15 Aug 2022 16:28:27 +0000 (17:28 +0100)]
patch 9.0.0216: undo earlier test sometimes fails on MS-Windows

Problem:    Undo earlier test sometimes fails on MS-Windows.
Solution:   Use another file name.

2 years agopatch 9.0.0215: not passing APC_INDENT flag v9.0.0215
Bram Moolenaar [Mon, 15 Aug 2022 15:29:37 +0000 (16:29 +0100)]
patch 9.0.0215: not passing APC_INDENT flag

Problem:    Not passing APC_INDENT flag.
Solution:   Pass the flag where it's needed.

2 years agopatch 9.0.0214: splitting a line may duplicate virtual text v9.0.0214
Bram Moolenaar [Mon, 15 Aug 2022 14:55:10 +0000 (15:55 +0100)]
patch 9.0.0214: splitting a line may duplicate virtual text

Problem:    Splitting a line may duplicate virtual text. (Ben Jackson)
Solution:   Don't duplicate a text property with virtual text. Make
            auto-indenting work better. (closes #10919)

2 years agopatch 9.0.0213: using freed memory with error in assert argument v9.0.0213
Bram Moolenaar [Sun, 14 Aug 2022 21:23:02 +0000 (22:23 +0100)]
patch 9.0.0213: using freed memory with error in assert argument

Problem:    Using freed memory with error in assert argument.
Solution:   Make a copy of the error.

2 years agopatch 9.0.0212: invalid memory access when compiling :unlet v9.0.0212
Bram Moolenaar [Sun, 14 Aug 2022 20:46:07 +0000 (21:46 +0100)]
patch 9.0.0212: invalid memory access when compiling :unlet

Problem:    Invalid memory access when compiling :unlet.
Solution:   Don't read past the end of the line.

2 years agopatch 9.0.0211: invalid memory access when compiling :lockvar v9.0.0211
Bram Moolenaar [Sun, 14 Aug 2022 20:28:32 +0000 (21:28 +0100)]
patch 9.0.0211: invalid memory access when compiling :lockvar

Problem:    Invalid memory access when compiling :lockvar.
Solution:   Don't read past the end of the line.

2 years agopatch 9.0.0210: 'list' mode does not work properly with virtual text v9.0.0210
Bram Moolenaar [Sun, 14 Aug 2022 18:37:36 +0000 (19:37 +0100)]
patch 9.0.0210: 'list' mode does not work properly with virtual text

Problem:    'list' mode does not work properly with virtual text.
Solution:   Show the "$" at the right position. (closes #10913)

2 years agopatch 9.0.0209: build error with small features v9.0.0209
Bram Moolenaar [Sun, 14 Aug 2022 15:50:42 +0000 (16:50 +0100)]
patch 9.0.0209: build error with small features

Problem:    Build error with small features.
Solution:   Add #ifdef.

2 years agopatch 9.0.0208: the override flag has no effect for virtual text v9.0.0208
Bram Moolenaar [Sun, 14 Aug 2022 15:36:38 +0000 (16:36 +0100)]
patch 9.0.0208: the override flag has no effect for virtual text

Problem:    The override flag has no effect for virtual text. (Ben Jackson)
Solution:   Make the override flag work. (closes #10915)

2 years agopatch 9.0.0207: stacktrace not shown when debugging v9.0.0207
zeertzjq [Sun, 14 Aug 2022 13:49:50 +0000 (14:49 +0100)]
patch 9.0.0207: stacktrace not shown when debugging

Problem:    Stacktrace not shown when debugging.
Solution:   Set msg_scroll in msg_source(). (closes #10917)

2 years agopatch 9.0.0206: redraw flags are not named specifically v9.0.0206
Bram Moolenaar [Sun, 14 Aug 2022 13:17:45 +0000 (14:17 +0100)]
patch 9.0.0206: redraw flags are not named specifically

Problem:    Redraw flags are not named specifically.
Solution:   Prefix "UPD_" to the flags, for UPDate_screen().

2 years agopatch 9.0.0205: cursor in wrong position when inserting after virtual text v9.0.0205
Bram Moolenaar [Sun, 14 Aug 2022 12:28:55 +0000 (13:28 +0100)]
patch 9.0.0205: cursor in wrong position when inserting after virtual text

Problem:    Cursor in wrong position when inserting after virtual text. (Ben
            Jackson)
Solution:   Put the cursor after the virtual text, where the text will be
            inserted. (closes #10914)

2 years agopatch 9.0.0204: indexof() may leak memory v9.0.0204
Yegappan Lakshmanan [Sun, 14 Aug 2022 11:07:11 +0000 (12:07 +0100)]
patch 9.0.0204: indexof() may leak memory

Problem:    indexof() may leak memory.
Solution:   Free allocated values. (Yegappan Lakshmanan, closes #10916)

2 years agopatch 9.0.0203: confusing variable name v9.0.0203
Bram Moolenaar [Sat, 13 Aug 2022 20:37:29 +0000 (21:37 +0100)]
patch 9.0.0203: confusing variable name

Problem:    Confusing variable name.
Solution:   Use "prim_aep" instead of "spell_aep".

2 years agopatch 9.0.0202: code and help for indexof() is not ideal v9.0.0202
Yegappan Lakshmanan [Sat, 13 Aug 2022 20:35:13 +0000 (21:35 +0100)]
patch 9.0.0202: code and help for indexof() is not ideal

Problem:    Code and help for indexof() is not ideal.
Solution:   Refactor the code, improve the help. (Yegappan Lakshmanan,
            closes #10908)

2 years agopatch 9.0.0201: CursorLine highlight overrules virtual text highlight v9.0.0201
Bram Moolenaar [Sat, 13 Aug 2022 19:17:34 +0000 (20:17 +0100)]
patch 9.0.0201: CursorLine highlight overrules virtual text highlight

Problem:    CursorLine highlight overrules virtual text highlight.
Solution:   Let extra attribute overrule line attribute. (closes #10909)

2 years agopatch 9.0.0200: cursor wrong if 'nowrap' and two right aligned text props v9.0.0200
Bram Moolenaar [Sat, 13 Aug 2022 18:35:05 +0000 (19:35 +0100)]
patch 9.0.0200: cursor wrong if 'nowrap' and two right aligned text props

Problem:    cursor in a wrong positoin if 'wrap' is off and using two right
            aligned text props in one line.
Solution:   Count an extra line for a right aligned text property after a
            below or right aligned text property. (issue #10909)

2 years agopatch 9.0.0199: cursor position wrong with two right-aligned virtual texts v9.0.0199
Bram Moolenaar [Sat, 13 Aug 2022 15:41:19 +0000 (16:41 +0100)]
patch 9.0.0199: cursor position wrong with two right-aligned virtual texts

Problem:    Cursor position wrong with two right-aligned virtual texts.
Solution:   Add the padding for right-alignment. (issue #10906)

2 years agopatch 9.0.0198: ml_get error when switching buffer in Visual mode v9.0.0198
Bram Moolenaar [Sat, 13 Aug 2022 13:09:44 +0000 (14:09 +0100)]
patch 9.0.0198: ml_get error when switching buffer in Visual mode

Problem:    ml_get error when switching buffer in Visual mode.
Solution:   End Visual mode when switching buffer. (closes #10902)

2 years agopatch 9.0.0197: astro files are not detected v9.0.0197
Emilia Zapata [Sat, 13 Aug 2022 12:21:31 +0000 (13:21 +0100)]
patch 9.0.0197: astro files are not detected

Problem:    Astro files are not detected.
Solution:   Add a pattern to match Astro files. (Emilia Zapata, closes #10904)

2 years agopatch 9.0.0196: finding value in list may require a for loop v9.0.0196
Yegappan Lakshmanan [Sat, 13 Aug 2022 12:09:20 +0000 (13:09 +0100)]
patch 9.0.0196: finding value in list may require a for loop

Problem:    Finding value in list may require a for loop.
Solution:   Add indexof(). (Yegappan Lakshmanan, closes #10903)

2 years agopatch 9.0.0195: metafun files are not recogized v9.0.0195
Bram Moolenaar [Fri, 12 Aug 2022 20:57:13 +0000 (21:57 +0100)]
patch 9.0.0195: metafun files are not recogized

Problem:    Metafun files are not recogized.
Solution:   Add filetype detection patterns.

2 years agopatch 9.0.0194: cursor displayed in wrong position after removing text prop v9.0.0194
Bram Moolenaar [Fri, 12 Aug 2022 12:05:49 +0000 (13:05 +0100)]
patch 9.0.0194: cursor displayed in wrong position after removing text prop

Problem:    Cursor displayed in wrong position after removing text prop. (Ben
            Jackson)
Solution:   Invalidate the cursor position. (closes #10898)

2 years agopatch 9.0.0193: search and match highlgith interfere with virtual text v9.0.0193
Bram Moolenaar [Thu, 11 Aug 2022 16:24:50 +0000 (17:24 +0100)]
patch 9.0.0193: search and match highlgith interfere with virtual text

Problem:    Search and match highlgith interfere with virtual text highlight.
            (Ben Jackson)
Solution:   Check for match highlight after text properties.  Reset and
            restore search highlight when showing virtual text.
            (closes #10892)

2 years agopatch 9.0.0192: possible invalid memory access when 'cmdheight' is zero v9.0.0192
Bram Moolenaar [Thu, 11 Aug 2022 14:52:14 +0000 (15:52 +0100)]
patch 9.0.0192: possible invalid memory access when 'cmdheight' is zero

Problem:    Possible invalid memory access when 'cmdheight' is zero. (Martin
            Tournoij)
Solution:   Avoid going over the end of w_lines[] when w_height is Rows.
            (closes #10882)

2 years agopatch 9.0.0191: messages test fails; window size incorrect v9.0.0191
Bram Moolenaar [Thu, 11 Aug 2022 13:13:37 +0000 (14:13 +0100)]
patch 9.0.0191: messages test fails; window size incorrect

Problem:    Messages test fails; window size incorrect when 'cmdheight' is
            made smaller.
Solution:   Properly cleanup after test with cmdheight zero.  Resize windows
            correctly when 'cmdheight' gets smaller.

2 years agopatch 9.0.0190: the way 'cmdheight' can be made zero is inconsistent v9.0.0190
Bram Moolenaar [Thu, 11 Aug 2022 12:17:30 +0000 (13:17 +0100)]
patch 9.0.0190: the way 'cmdheight' can be made zero is inconsistent

Problem:    The way 'cmdheight' can be made zero is inconsistent.
Solution:   Only make 'cmdheight' zero when setting it explicitly, not when
            resizing windows. (closes #10890)

2 years agopatch 9.0.0189: invalid memory access for text prop without highlight v9.0.0189
Bram Moolenaar [Wed, 10 Aug 2022 19:50:23 +0000 (20:50 +0100)]
patch 9.0.0189: invalid memory access for text prop without highlight

Problem:    Invalid memory access for text prop without highlight.
Solution:   Check for a valid highlight ID.

2 years agopatch 9.0.0188: strange effects when using "text_align" with non-zero column v9.0.0188
Bram Moolenaar [Wed, 10 Aug 2022 18:50:47 +0000 (19:50 +0100)]
patch 9.0.0188: strange effects when using "text_align" with non-zero column

Problem:    Strange effects when using virtual text with "text_align" and
            non-zero column. (Martin Tournoij)
Solution:   Give an error. (closes #10888)

2 years agopatch 9.0.0187: command line height changes when maximizing window height v9.0.0187
Bram Moolenaar [Wed, 10 Aug 2022 16:23:12 +0000 (17:23 +0100)]
patch 9.0.0187: command line height changes when maximizing window height

Problem:    Command line height changes when maximizing window height.
Solution:   Do not change the command line height. (closes #10885)

2 years agopatch 9.0.0186: virtual text without highlighting does not show v9.0.0186
Bram Moolenaar [Wed, 10 Aug 2022 15:49:02 +0000 (16:49 +0100)]
patch 9.0.0186: virtual text without highlighting does not show

Problem:    Virtual text without highlighting does not show. (Ben Jackson)
Solution:   Use a text property when it has highlighting or when it has text.
            (closes #10878)

2 years agopatch 9.0.0185: virtual text does not show if text prop at same position v9.0.0185
Bram Moolenaar [Wed, 10 Aug 2022 15:00:33 +0000 (16:00 +0100)]
patch 9.0.0185: virtual text does not show if text prop at same position

Problem:    Virtual text does not show if tehre is a text prop at same
            position. (Ben Jackson)
Solution:   Fix the sorting of properties. (closes #10879)

2 years agopatch 9.0.0184: virtual text prop highlight continues after truncation v9.0.0184
Bram Moolenaar [Wed, 10 Aug 2022 12:39:35 +0000 (13:39 +0100)]
patch 9.0.0184: virtual text prop highlight continues after truncation

Problem:    Virtual text prop highlight continues after truncation.
Solution:   Recompute the length of attributes.

2 years agopatch 9.0.0183: extra space after virtual text when 'linebreak' is set v9.0.0183
Bram Moolenaar [Wed, 10 Aug 2022 12:12:03 +0000 (13:12 +0100)]
patch 9.0.0183: extra space after virtual text when 'linebreak' is set

Problem:    Extra space after virtual text when 'linebreak' is set.
Solution:   Do not count virtual text when getting linebreak value.
            (closes #10884)

2 years agopatch 9.0.0182: quarto files are not recognized v9.0.0182
smjonas [Wed, 10 Aug 2022 10:48:10 +0000 (11:48 +0100)]
patch 9.0.0182: quarto files are not recognized

Problem:    Quarto files are not recognized.
Solution:   Recognize quarto files by the extension. (Jonas Strittmatter,
            closes #10880)

2 years agopatch 9.0.0181: textprop test with line2byte() fails on MS-Windows v9.0.0181
Bram Moolenaar [Tue, 9 Aug 2022 20:37:55 +0000 (21:37 +0100)]
patch 9.0.0181: textprop test with line2byte() fails on MS-Windows

Problem:    Textprop test with line2byte() fails on MS-Windows.
Solution:   Fix updating chuncks in ml_delete_int().

2 years agopatch 9.0.0180: stray logfile appears when running tests v9.0.0180
Bram Moolenaar [Tue, 9 Aug 2022 18:30:19 +0000 (19:30 +0100)]
patch 9.0.0180: stray logfile appears when running tests

Problem:    Stray logfile appears when running tests.
Solution:   Remove ch_logfile() calls.

2 years agopatch 9.0.0179: cursor pos wrong with wrapping virtual text in empty line v9.0.0179
Bram Moolenaar [Tue, 9 Aug 2022 17:25:23 +0000 (18:25 +0100)]
patch 9.0.0179: cursor pos wrong with wrapping virtual text in empty line

Problem:    Cursor position wrong with wrapping virtual text in empty line.
Solution:   Adjust handling of an empty line. (closes #10875)

2 years agopatch 9.0.0178: cursor position wrong with virtual text before Tab v9.0.0178
Bram Moolenaar [Tue, 9 Aug 2022 15:55:41 +0000 (16:55 +0100)]
patch 9.0.0178: cursor position wrong with virtual text before Tab

Problem:    Cursor position wrong with virtual text before Tab.
Solution:   Use the byte length, not the cell with, to compare the column.
            Correct tab size after text prop. (closes #10866)

2 years agopatch 9.0.0177: cursor position wrong with 'virtualedit' and mouse click v9.0.0177
Bram Moolenaar [Tue, 9 Aug 2022 13:19:40 +0000 (14:19 +0100)]
patch 9.0.0177: cursor position wrong with 'virtualedit' and mouse click

Problem:    Cursor position wrong with 'virtualedit' and mouse click after end
            of the line. (Hermann Mayer)
Solution:   Do not use ScreenCols[] when 'virtualedit' is active.
            (closes #10868)

2 years agopatch 9.0.0176: checking character options is duplicated and incomplete v9.0.0176
zeertzjq [Tue, 9 Aug 2022 11:53:14 +0000 (12:53 +0100)]
patch 9.0.0176: checking character options is duplicated and incomplete

Problem:    Checking character options is duplicated and incomplete.
Solution:   Move checking to check_chars_options(). (closes #10863)

2 years agopatch 9.0.0175: spell checking for capital not working with trailing space v9.0.0175
Christian Brabandt [Tue, 9 Aug 2022 11:25:10 +0000 (12:25 +0100)]
patch 9.0.0175: spell checking for capital not working with trailing space

Problem:    Spell checking for capital not working with trailing space.
Solution:   Do not calculate cap_col at the end of the line. (Christian
            Brabandt, closes #10870, issue #10838)

2 years agopatch 9.0.0174: no error for using "#{ comment" in a compiled function v9.0.0174
Bram Moolenaar [Mon, 8 Aug 2022 20:43:11 +0000 (21:43 +0100)]
patch 9.0.0174: no error for using "#{ comment" in a compiled function

Problem:    No error for using "#{ comment" in a compiled function.
Solution:   Make error checking for "#{" consistent. (closes #10855)

2 years agopatch 9.0.0173: assert fails only on MS-Windows v9.0.0173
Bram Moolenaar [Mon, 8 Aug 2022 17:12:30 +0000 (18:12 +0100)]
patch 9.0.0173: assert fails only on MS-Windows

Problem:    Assert fails only on MS-Windows.
Solution:   Disable the assert for now.

2 years agopatch 9.0.0172: trying to allocate zero bytes v9.0.0172
Bram Moolenaar [Mon, 8 Aug 2022 16:08:05 +0000 (17:08 +0100)]
patch 9.0.0172: trying to allocate zero bytes

Problem:    Trying to allocate zero bytes.
Solution:   Do not allocate the proptype array when there are none.
            (closes #10867)

2 years agopatch 9.0.0171: quickfix line highlight is overruled by 'cursorline' v9.0.0171
Bram Moolenaar [Mon, 8 Aug 2022 15:03:06 +0000 (16:03 +0100)]
patch 9.0.0171: quickfix line highlight is overruled by 'cursorline'

Problem:    Quickfix line highlight is overruled by 'cursorline'.
Solution:   Reverse the combination of attributes. (closes #10654)

2 years agopatch 9.0.0170: various minor code formatting issues v9.0.0170
Bram Moolenaar [Mon, 8 Aug 2022 14:49:18 +0000 (15:49 +0100)]
patch 9.0.0170: various minor code formatting issues

Problem:    Various minor code formatting issues.
Solution:   Improve code formatting.

2 years agoUpdate runtime files
Bram Moolenaar [Mon, 8 Aug 2022 14:42:38 +0000 (15:42 +0100)]
Update runtime files

2 years agopatch 9.0.0169: insufficient testing for line2byte() with text properties v9.0.0169
Bram Moolenaar [Mon, 8 Aug 2022 13:59:47 +0000 (14:59 +0100)]
patch 9.0.0169: insufficient testing for line2byte() with text properties

Problem:    Insufficient testing for line2byte() with text properties.
Solution:   Add tests with a lot of text.

2 years agopatch 9.0.0168: cursor positioned wrong with two virtual text properties v9.0.0168
Bram Moolenaar [Mon, 8 Aug 2022 10:07:47 +0000 (11:07 +0100)]
patch 9.0.0168: cursor positioned wrong with two virtual text properties

Problem:    Cursor positioned wrong with two virtual text properties close
            together. (Ben Jackson)
Solution:   Add the original size, not the computed one. (closes #10864)

2 years agopatch 9.0.0167: checking for text properties could be a bit more efficient v9.0.0167
Bram Moolenaar [Sun, 7 Aug 2022 21:04:56 +0000 (22:04 +0100)]
patch 9.0.0167: checking for text properties could be a bit more efficient

Problem:    Checking for text properties could be a bit more efficient.
Solution:   Return early when there are no text properties.  Update TODO
            items.

2 years agopatch 9.0.0166: when using text properties line text length computed twice v9.0.0166
Bram Moolenaar [Sun, 7 Aug 2022 20:48:37 +0000 (21:48 +0100)]
patch 9.0.0166: when using text properties line text length computed twice

Problem:    When using text properties the line text length is computed twice.
Solution:   If the text lenght was already computed don't do it again.

2 years agopatch 9.0.0165: looking up a text property type by ID is slow v9.0.0165
Bram Moolenaar [Sun, 7 Aug 2022 17:20:08 +0000 (18:20 +0100)]
patch 9.0.0165: looking up a text property type by ID is slow

Problem:    Looking up a text property type by ID is slow.
Solution:   Keep an array of property types sorted on ID.

2 years agopatch 9.0.0164: using freed memory with put command v9.0.0164
Bram Moolenaar [Sun, 7 Aug 2022 17:09:10 +0000 (18:09 +0100)]
patch 9.0.0164: using freed memory with put command

Problem:    Using freed memory with put command.
Solution:   Get byte offset before replacing the line.

2 years agopatch 9.0.0163: text property not adjusted for text inserted with "p" v9.0.0163
Bram Moolenaar [Sun, 7 Aug 2022 13:55:14 +0000 (14:55 +0100)]
patch 9.0.0163: text property not adjusted for text inserted with "p"

Problem:    Text property not adjusted for text inserted with "p".
Solution:   Adjust column and length of text properties.

2 years agopatch 9.0.0162: text property "below" gets indent if 'breakindent' is set v9.0.0162
Bram Moolenaar [Sun, 7 Aug 2022 10:53:40 +0000 (11:53 +0100)]
patch 9.0.0162: text property "below" gets indent if 'breakindent' is set

Problem:    Text property "below" gets indent if 'breakindent' is set. (Tim
            Pope)
Solution:   Do not put indent before text property. (closes #10859)

2 years agopatch 9.0.0161: warning for uninitialized variable v9.0.0161
Bram Moolenaar [Sat, 6 Aug 2022 21:38:02 +0000 (22:38 +0100)]
patch 9.0.0161: warning for uninitialized variable

Problem:    Warning for uninitialized variable. (Tony Mechelynck)
Solution:   Initialize line_attr_save.

2 years agopatch 9.0.0160: some diff mode tests fail v9.0.0160
Bram Moolenaar [Sat, 6 Aug 2022 21:23:40 +0000 (22:23 +0100)]
patch 9.0.0160: some diff mode tests fail

Problem:    Some diff mode tests fail.
Solution:   Only advance "ptr" when a text property follows.

2 years agopatch 9.0.0159: cannot build with small features v9.0.0159
Bram Moolenaar [Sat, 6 Aug 2022 21:13:03 +0000 (22:13 +0100)]
patch 9.0.0159: cannot build with small features

Problem:    Cannot build with small features.
Solution:   Check for E1170 only with FEAT_EVAL.

2 years agopatch 9.0.0158: with 'nowrap' "below" property not displayed correctly v9.0.0158
Bram Moolenaar [Sat, 6 Aug 2022 21:03:20 +0000 (22:03 +0100)]
patch 9.0.0158: with 'nowrap' "below" property not displayed correctly

Problem:    With 'nowrap' "below" property not displayed correctly.
Solution:   Adjust virtual text with 'nowrap', do not truncate.

2 years agopatch 9.0.0157: 'showbreak' displayed below truncated "after" text prop v9.0.0157
Bram Moolenaar [Sat, 6 Aug 2022 20:03:53 +0000 (21:03 +0100)]
patch 9.0.0157: 'showbreak' displayed below truncated "after" text prop

Problem:    'showbreak' displayed below truncated "after" text prop.
Solution:   Suppress 'showbreak' when "after" prop doesn't wrap.

2 years agopatch 9.0.0156: giving E1170 only in an expression is confusing v9.0.0156
Bram Moolenaar [Sat, 6 Aug 2022 17:12:06 +0000 (18:12 +0100)]
patch 9.0.0156: giving E1170 only in an expression is confusing

Problem:    Giving E1170 only in an expression is confusing.
Solution:   Give E1170 for any "#{ comment". (closes #10855)

2 years agopatch 9.0.0155 v9.0.0155
Bram Moolenaar [Sat, 6 Aug 2022 16:38:53 +0000 (17:38 +0100)]
patch 9.0.0155
Problem:    No test for what patch 9.0.0155 fixes.
Solution:   Add a test. Fix typos.  (closes #10822)

2 years agopatch 9.0.0154: text properties wrong after splitting a line v9.0.0154
Bram Moolenaar [Sat, 6 Aug 2022 16:10:57 +0000 (17:10 +0100)]
patch 9.0.0154: text properties wrong after splitting a line

Problem:    Text properties wrong after splitting a line.
Solution:   Check for text properties after the line. (closes #10857)

2 years agopatch 9.0.0153: no fold and sign column for virtual text with "below" align v9.0.0153
Bram Moolenaar [Sat, 6 Aug 2022 14:59:06 +0000 (15:59 +0100)]
patch 9.0.0153: no fold and sign column for virtual text with "below" align

Problem:    No fold and sign column for virtual text with "below" align and
            'nowrap'.
Solution:   Go back to draw state WL_START when moving to the next line.
            (closes #10851)

2 years agopatch 9.0.0152: warning for unused argument in small build v9.0.0152
Bram Moolenaar [Sat, 6 Aug 2022 13:21:52 +0000 (14:21 +0100)]
patch 9.0.0152: warning for unused argument in small build

Problem:    Warning for unused argument in small build.
Solution:   Add "UNUSED".

2 years agopatch 9.0.0151: a "below" aligned text property does not work with 'nowrap' v9.0.0151
Bram Moolenaar [Sat, 6 Aug 2022 12:48:20 +0000 (13:48 +0100)]
patch 9.0.0151: a "below" aligned text property does not work with 'nowrap'

Problem:    A "below" aligned text property does not work with 'nowrap'.
Solution:   Start a new screen line to display the virtual text.
            (closes #10851)

2 years agopatch 9.0.0150: error for using #{ in an expression is a bit confusing v9.0.0150
Bram Moolenaar [Sat, 6 Aug 2022 10:35:28 +0000 (11:35 +0100)]
patch 9.0.0150: error for using #{ in an expression is a bit confusing

Problem:    Error for using #{ in an expression is a bit confusing.
Solution:   Mention that this error is only given for an expression.
            Avoid giving the error more than once. (closes #10855)

2 years agopatch 9.0.0149: test for fuzzy completion fails sometimes v9.0.0149
Bram Moolenaar [Sat, 6 Aug 2022 09:28:19 +0000 (10:28 +0100)]
patch 9.0.0149: test for fuzzy completion fails sometimes

Problem:    Test for fuzzy completion fails sometimes.
Solution:   Use a more specific file name to minimize the chance of matching a
            random directory name. (closes #10854)

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.