Bram Moolenaar
78d52883e1
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.
2022-05-24 13:57:54 +01:00
LemonBoy
53737b5eee
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 )
2022-05-24 11:49:31 +01:00
Yegappan Lakshmanan
971f6825ee
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 )
2022-05-24 11:40:11 +01:00
Bram Moolenaar
c9a431c763
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.
2022-05-23 21:49:41 +01:00
Brandon Simmons
e8c4a64bff
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 )
2022-05-23 15:33:08 +01:00
Bram Moolenaar
7e66778815
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.
2022-05-23 13:10:48 +01:00
Bram Moolenaar
6d24b4ff69
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.
2022-05-23 12:01:50 +01:00
Bram Moolenaar
68e64d2c17
patch 8.2.5006: asan warns for undefined behavior
...
Problem: Asan warns for undefined behavior.
Solution: Cast the shifted value to unsigned.
2022-05-22 22:07:52 +01:00
Bram Moolenaar
5b529230f1
patch 8.2.5005: compiler warning for uninitialized variable
...
Problem: Compiler warning for uninitialized variable. (John Marriott)
Solution: Initialize the pointer to NULL.
2022-05-22 21:53:26 +01:00
Bram Moolenaar
338bf58eba
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.
2022-05-22 20:16:32 +01:00
Yegappan Lakshmanan
a061f34191
patch 8.2.5003: cannot do bitwise shifts
...
Problem: Cannot do bitwise shifts.
Solution: Add the >> and << operators. (Yegappan Lakshmanan, closes #8457 )
2022-05-22 19:13:49 +01:00
LemonBoy
9b2edfd3bf
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 )
2022-05-22 15:35:53 +01:00
Bram Moolenaar
8a3704723c
patch 8.2.5001: checking translations affects the search pattern history
...
Problem: Checking translations affects the search pattern history.
Solution: Use "keeppatterns". (Doug Kearns)
2022-05-22 15:28:31 +01:00
Bram Moolenaar
835ee980ee
patch 8.2.5000: no patch for documentation updates
...
Problem: No patch for documentation updates.
Solution: Update documentation files.
2022-05-22 14:50:16 +01:00
Bram Moolenaar
aa9729b652
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)
2022-05-22 14:26:54 +01:00
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
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