0
0
mirror of https://github.com/vim/vim.git synced 2025-09-28 04:24:06 -04:00
Commit Graph

16096 Commits

Author SHA1 Message Date
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.
v8.2.5008
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.
v8.2.5007
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.
v8.2.5006
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.
v8.2.5005
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.
v8.2.5004
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)
v8.2.5003
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)
v8.2.5002
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)
v8.2.5001
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.
v8.2.5000
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)
v8.2.4999
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)
v8.2.4998
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)
v8.2.4997
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)
v8.2.4996
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.
v8.2.4995
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.
v8.2.4994
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.
v8.2.4993
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.
v8.2.4992
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)
v8.2.4991
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.
v8.2.4990
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.
v8.2.4989
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)
v8.2.4988
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)
v8.2.4987
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)
v8.2.4986
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)
v8.2.4985
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)
v8.2.4984
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.
v8.2.4983
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)
v8.2.4982
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)
v8.2.4981
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)
v8.2.4980
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.
v8.2.4979
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)
v8.2.4978
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.
v8.2.4977
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.
v8.2.4976
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().
v8.2.4975
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.
v8.2.4974
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)
v8.2.4973
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)
v8.2.4972
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)
v8.2.4971
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)
v8.2.4970
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.
v8.2.4969
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.
v8.2.4968
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.
v8.2.4967
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.
v8.2.4966
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.
v8.2.4965
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.
v8.2.4964
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().
v8.2.4963
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)
v8.2.4962
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)
v8.2.4961
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)
v8.2.4960
2022-05-15 22:24:55 +01:00