Bram Moolenaar
bce69d65dd
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 )
2022-05-22 13:45:52 +01:00
Bram Moolenaar
37233f6022
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 )
2022-05-22 12:23:48 +01:00
Bram Moolenaar
0ad00a7fd3
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 )
2022-05-22 11:59:25 +01:00
Bram Moolenaar
dafef51b1c
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.
2022-05-21 21:55:55 +01:00
Bram Moolenaar
7e569d09d2
patch 8.2.4994: tests are using legacy functions
...
Problem: Tests are using legacy functions.
Solution: Convert a few tests to use :def functions.
2022-05-21 21:30:50 +01:00
Bram Moolenaar
8e145b8246
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.
2022-05-21 20:17:31 +01:00
Bram Moolenaar
5a01caa904
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.
2022-05-21 18:56:58 +01:00
zeertzjq
93c1573dd2
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 )
2022-05-21 16:34:38 +01:00
Bram Moolenaar
1a56ea8381
patch 8.2.4990: memory leak when :defcompile fails
...
Problem: Memory leak when :defcompile fails.
Solution: Free fname when returning early.
2022-05-21 16:28:42 +01:00
Bram Moolenaar
f79d9dd43f
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.
2022-05-21 15:39:02 +01:00
Bram Moolenaar
2d8ed0203a
Update runtime files.
2022-05-21 13:08:16 +01:00
LemonBoy
0d534d9cf2
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 )
2022-05-21 11:20:42 +01:00
Brandon Simmons
3fcccf94e8
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 )
2022-05-20 18:25:21 +01:00
Philip H
8a83ffdc43
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 )
2022-05-20 17:19:06 +01:00
Bram Moolenaar
875339b22a
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 )
2022-05-20 14:10:50 +01:00
zeertzjq
6dab00aa54
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 )
2022-05-20 13:45:59 +01:00
Bram Moolenaar
b0855f5324
patch 8.2.4983: colors test fails in the GUI
...
Problem: Colors test fails in the GUI.
Solution: Reset g:terminal_ansi_colors.
2022-05-20 10:39:18 +01:00
LemonBoy
b2b3acbf2b
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 )
2022-05-20 10:10:34 +01:00
Yegappan Lakshmanan
1755a91851
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 )
2022-05-19 10:31:47 +01:00
Bram Moolenaar
aaadb5b6f7
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 )
2022-05-18 22:07:47 +01:00
Bram Moolenaar
28d032cc68
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.
2022-05-18 16:29:08 +01:00
Christian Brabandt
360da40b47
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 )
2022-05-18 15:04:02 +01:00
Bram Moolenaar
e2bd8600b8
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.
2022-05-18 13:11:57 +01:00
Bram Moolenaar
b1040dc11f
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.
2022-05-18 11:00:48 +01:00
Bram Moolenaar
51f0bfb88a
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().
2022-05-17 20:11:02 +01:00
Bram Moolenaar
4748c4bd64
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.
2022-05-17 17:47:07 +01:00
Bram Moolenaar
bd3a9d2c94
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 )
2022-05-17 16:12:39 +01:00
Bram Moolenaar
1ff9c44267
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 )
2022-05-17 15:03:33 +01:00
Bram Moolenaar
40c141d333
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 )
2022-05-17 13:14:23 +01:00
Bram Moolenaar
0d03263fd7
patch 8.2.4970: "eval 123" gives an error, "eval 'abc'" does not
...
Problem: "eval 123" gives an error, "eval 'abc'" does not.
Solution: Also give an error when evaluating only a string. (closes #10434 )
2022-05-17 12:45:15 +01:00
Bram Moolenaar
7ce5b2b590
patch 8.2.4969: changing text in Visual mode may cause invalid memory access
...
Problem: Changing text in Visual mode may cause invalid memory access.
Solution: Check the Visual position after making a change.
2022-05-16 19:40:59 +01:00
Bram Moolenaar
60ae0e7149
patch 8.2.4968: reading past end of the line when C-indenting
...
Problem: Reading past end of the line when C-indenting.
Solution: Check for NUL.
2022-05-16 18:06:15 +01:00
Bram Moolenaar
3c25a8617a
patch 8.2.4967: MS-Windows GUI: mouse event test sometimes fails
...
Problem: MS-Windows GUI: mouse event test sometimes fails.
Solution: Ignore one move event only if there is an extra event.
2022-05-16 17:07:41 +01:00
Bram Moolenaar
e5162e76c0
patch 8.2.4966: MS-Windows GUI: mouse event test gets extra event
...
Problem: MS-Windows GUI: mouse event test gets extra event.
Solution: Ignore one move event.
2022-05-16 16:41:35 +01:00
Bram Moolenaar
7add8d3731
patch 8.2.4965: GUI: testing mouse move event depends on screen cell size
...
Problem: GUI: testing mouse move event depends on screen cell size.
Solution: Multiply the row and column with the screen cell size.
2022-05-16 15:27:46 +01:00
Bram Moolenaar
3b675c276c
patch 8.2.4964: MS-Windows GUI: mouse event test is flaky
...
Problem: MS-Windows GUI: mouse event test is flaky.
Solution: Add a short delay after generating a mouse event.
2022-05-16 13:34:44 +01:00
Bram Moolenaar
386c24cd26
patch 8.2.4963: expanding path with "/**" may overrun end of buffer
...
Problem: Expanding path with "/**" may overrun end of buffer.
Solution: Use vim_snprintf().
2022-05-16 12:37:36 +01:00
shane.xb.qian
5a8fad32ea
patch 8.2.4962: files show up in git status
...
Problem: Files show up in git status.
Solution: Adjust the list of ignored files. Clean up more test files.
(Shane xb Qian, closes #9929 )
2022-05-16 11:14:09 +01:00
Bram Moolenaar
9f28eeb694
patch 8.2.4961: build error with a certain combination of features
...
Problem: Build error with a certain combination of features.
Solution: Adjust #if. (John Marriott)
2022-05-16 10:04:51 +01:00
Paul Ollis
1bdc60eb91
patch 8.2.4960: text properties that cross lines not updated for deleted line
...
Problem: Text properties that cross line boundary are not correctly updated
for a deleted line.
Solution: Correct computing location of text property entry. (Paul Ollis,
closes #10431 , closes #10430 )
2022-05-15 22:24:55 +01:00
Bram Moolenaar
b62dc5e782
patch 8.2.4959: using NULL regexp program
...
Problem: Using NULL regexp program.
Solution: Check for regexp program becoming NULL in more places.
2022-05-15 14:50:12 +01:00
=?UTF-8?q?Dundar=20G=C3=B6c?=
dd41037552
patch 8.2.4958: a couple conditions are always true
...
Problem: A couple conditions are always true.
Solution: Remove the conditions. (Goc Dundar, closes #10428 )
2022-05-15 13:59:11 +01:00
LemonBoy
b559b302e0
patch 8.2.4957: text properties in a wrong position after a block change
...
Problem: Text properties in a wrong position after a block change.
Solution: Adjust the properties columns. (closes #10427 )
2022-05-15 13:08:02 +01:00
Bram Moolenaar
395bd1f6d3
patch 8.2.4956: reading past end of line with "gf" in Visual block mode
...
Problem: Reading past end of line with "gf" in Visual block mode.
Solution: Do not include the NUL in the length.
2022-05-14 21:29:44 +01:00
LemonBoy
788c06a249
patch 8.2.4955: text property in wrong position after auto-indent
...
Problem: Text property in wrong position after auto-indent.
Solution: Adjust text property columns. (closes #10422 , closes #7719 )
2022-05-14 18:48:05 +01:00
LemonBoy
698cb4c8fa
patch 8.2.4954: inserting line breaks text property spanning two lines
...
Problem: Inserting line breaks text property spanning more then one line.
Solution: Check TP_FLAG_CONT_PREV and TP_FLAG_CONT_NEXT. (closes #10423 )
2022-05-14 18:10:15 +01:00
Bram Moolenaar
2e444bbef0
patch 8.2.4953: with 'si' inserting '}' after completion goes wrong
...
Problem: With 'smartindent' inserting '}' after completion goes wrong.
Solution: Check the cursor is in indent. (closes #10420 )
2022-05-14 12:54:23 +01:00
Bram Moolenaar
98feacedf9
patch 8.2.4952: GUI test will fail if color scheme changes
...
Problem: GUI test will fail if color scheme changes.
Solution: Reduce the test for now.
2022-05-14 12:34:43 +01:00
Bram Moolenaar
de5cf28781
patch 8.2.4951: smart indenting done when not enabled
...
Problem: Smart indenting done when not enabled.
Solution: Check option values before setting can_si. (closes #10420 )
2022-05-14 11:52:23 +01:00
LemonBoy
4b93674159
patch 8.2.4950: text properties position wrong after shifting text
...
Problem: Text properties position wrong after shifting text.
Solution: Adjust the text properties when shifting a block of text.
(closes #10418 )
2022-05-13 21:56:28 +01:00