summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
2024-05-23patch 9.1.0434: make errors trying to access autoload/zigv9.1.0434Derek Schrock
Problem: make errors trying to access autoload/zig Solution: Remove autoload/zig from Makefile, adjust Filelist (Derek Schrock) Commit d1d9316c6 removed autoload/zig/ files and install/uninstall target of the Makefile fail since the directory doesn't exist any longer. closes: #14828 Signed-off-by: Derek Schrock <dereks@lifeofadishwasher.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-23patch 9.1.0433: Wrong yanking with exclusive selection and ve=allv9.1.0433zeertzjq
Problem: Wrong yanking with exclusive selection and virtualedit=all, and integer overflow when using getregion() on it. Solution: Set coladd when decreasing column and 'virtualedit' is active. Add more tests for getregion() with 'virtualedit' (zeertzjq). closes: #14830 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-22patch 9.1.0432: Ancient XPM preprocessor hack may cause build errorsv9.1.0432Drew Vogel
Problem: Ancient XPM preprocessor hack may cause build errors. Solution: Simplify XPM includes and get rid of complicated #ifdef magic (Drew Vogel). closes: #14816 Signed-off-by: Drew Vogel <dvogel@github> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-22patch 9.1.0431: eval.c is too longv9.1.0431Yegappan Lakshmanan
Problem: eval.c is too long Solution: Move garbage collection code to new gc.c file (Yegappan Lakshmanan) closes: #14824 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-22patch 9.1.0430: getregionpos() doesn't handle one char selectionv9.1.0430zeertzjq
Problem: getregionpos() doesn't handle one char selection. Solution: Handle startspaces differently when is_oneChar is set. Also add a test for an exclusive charwise selection with multibyte chars (zeertzjq) closes: #14825 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-21runtime(termdebug): check for gdb file/dir before using as buffer nameUbaldo Tiberi
Add test so that this doesn't regress. fixes: #12718 closes: #14792 Signed-off-by: Ubaldo Tiberi <ubaldo.tiberi@volvo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-21patch 9.1.0429: Coverity complains about eval.c refactorv9.1.0429Christian Brabandt
Problem: Coverity complains about eval.c refactor (after v9.1.0422) Solution: Check that buf is not used un-initialized, add explicit conditions for save and restore of copyID Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-21patch 9.1.0428: Tag guessing leaves wrong search history with very short namesv9.1.0428zeertzjq
Problem: Tag guessing leaves wrong search history with very short names (after 9.1.0426). Solution: Use the correct variable for pattern length (zeertzjq). closes: #14817 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-21patch 9.1.0427: tests: some issues with termdebug mapping testv9.1.0427Ken Takata
Problem: tests: some issues with termdebug mapping test Solution: Use assert_{true,false} if suitable, change order of expected and actual arguments in assert() calls. (Ken Takata) closes: #14818 related: 7fbbd7f Signed-off-by: Ken Takata <kentkt@csc.jp> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-20patch 9.1.0426: too many strlen() calls in search.cv9.1.0426John Marriott
Problem: too many strlen() calls in search.c Solution: refactor code and remove more strlen() calls, use explicit variable to remember strlen (John Marriott) closes: #14796 Signed-off-by: John Marriott <basilisk@internode.on.net> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-20patch 9.1.0425: filetype: purescript files are not recognizedv9.1.0425Riley Bruins
Problem: filetype: purescript files are not recognized Solution: recognize '*.purs' files as purescript filetype, include basic purescript filetype plugin (Riley Bruins) Reference: https://github.com/purescript/documentation/blob/master/language/Syntax.md#comments closes: #14813 Signed-off-by: Riley Bruins <ribru17@hotmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-20patch 9.1.0424: filetype: slint files are not recognizedv9.1.0424Riley Bruins
Problem: filetype: slint files are not recognized Solution: Detect '*.slint' files as slint filetype, include basic sling filetype plugin (Riley Bruins) closes: #14808 Signed-off-by: Riley Bruins <ribru17@hotmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-20patch 9.1.0423: getregionpos() wrong with blockwise mode and multibytev9.1.0423zeertzjq
Problem: getregionpos() wrong with blockwise mode and multibyte. Solution: Use textcol and textlen instead of start_vcol and end_vcol. Handle coladd properly (zeertzjq). Also remove unnecessary buflist_findnr() in add_regionpos_range(), as getregionpos() has already switched buffer. closes: #14805 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-20patch 9.1.0422: function echo_string_core() is too longv9.1.0422Yegappan Lakshmanan
Problem: function echo_string_core() is too long Solution: Refactor into several smaller functions (Yegappan Lakshmanan) closes: #14804 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-19patch 9.1.0421: filetype: hyprlang files are not recognizedv9.1.0421Riley Bruins
Problem: filetype: hyprlang files are not recognized Solution: recognize 'hypr{land,paper,idle,lock}.conf' files as 'hyprlang' filetype, add hyprlang ftplugin (Riley Bruins) closes: #14803 Signed-off-by: Riley Bruins <ribru17@hotmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-19patch 9.1.0420: :browse oldfiles prompts even with single entryv9.1.0420Christian Brabandt
Problem: :browse oldfiles prompts even with single entry Solution: Do not prompt, but edit the file directly, also when using :filter /pat/ browse oldfiles closes: #14794 Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-19patch 9.1.0419: eval.c not sufficiently testedv9.1.0419Yegappan Lakshmanan
Problem: eval.c not sufficiently tested Solution: Add a few more additional tests for eval.c, (Yegappan Lakshmanan) closes: #14799 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-17patch 9.1.0418: Cannot move to previous/next rare wordv9.1.0418Christ van Willegen - van Noort
Problem: Cannot move to previous/next rare word (Colin Kennedy) Solution: Add the ]r and [r motions (Christ van Willegen) fixes: #14773 closes: #14780 Signed-off-by: Christ van Willegen - van Noort <github.com@vanwillegen-vannoort.nl> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-17patch 9.1.0417: if_py: find_module has been removed in Python 3.12.0a7v9.1.0417Christian Brabandt
Problem: if_py: find_module has been removed in Python 3.12.0a7 (@Ghost-LZW) Solution: Do not include find_module for Python >= 3.12.0a7 fixes: #14776 closes: #14781 Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-17patch 9.1.0416: some screen dump tests can be improvedv9.1.0416Luuk van Baal
Problem: some screen dump tests can be improved (after 9.1.0414) Solution: Make sure screen state changes properly and is captured in the screen dumps (Luuk van Baal) closes: #14788 Signed-off-by: Luuk van Baal <luukvbaal@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-17patch 9.1.0415: Some functions are not testedv9.1.0415Yegappan Lakshmanan
Problem: Some functions are not tested Solution: Add a few more tests, fix a few minor problems (Yegappan Lakshmanan) closes: #14789 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-16patch 9.1.0414: Unable to leave long line with 'smoothscroll' and 'scrolloff'v9.1.0414Luuk van Baal
Problem: Unable to leave long line with 'smoothscroll' and 'scrolloff'. Corrupted screen near the end of a long line with 'scrolloff'. (Ernie Rael, after 9.1.0280) Solution: Only correct cursor in case scroll_cursor_bot() was not itself called to make the cursor visible. Avoid adjusting for 'scrolloff' beyond the text line height (Luuk van Baal) fixes: #14726 closes: #14783 Signed-off-by: Luuk van Baal <luukvbaal@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-15patch 9.1.0413: smoothscroll may cause infinite loopv9.1.0413Christian Brabandt
Problem: smoothscroll may cause infinite loop, with very narrow windows (Jaehwang Jung, after v9.1.0280) Solution: Check for width1 being negative, verify that win_linetabsize does not overflow fixes: #14750 closes: #14772 Co-authored-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-14patch 9.1.0412: typo in regexp_bt.c in DEBUG codev9.1.0412Christian Brabandt
Problem: typo in regexp_bt.c in DEBUG code, causing compile error (@kfleong7, after v9.1.0409) Solution: Replace bulen by buflen Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-12patch 9.1.0411: too long functions in eval.cv9.1.0411Yegappan Lakshmanan
Problem: too long functions in eval.c Solution: refactor functions (Yegappan Lakshmanan) closes: #14755 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-12patch 9.1.0410: warning about uninitialized variablev9.1.0410John Marriott
Problem: warning about uninitialized variable (Tony Mechelynck, after 9.1.0409) Solution: initialize variable (John Marriott) closes: #14754 Signed-off-by: John Marriott <basilisk@internode.on.net> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-12patch 9.1.0409: too many strlen() calls in the regexp enginev9.1.0409John Marriott
Problem: too many strlen() calls in the regexp engine Solution: refactor code to retrieve strlen differently, make use of bsearch() for getting the character class (John Marriott) closes: #14648 Signed-off-by: John Marriott <basilisk@internode.on.net> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-11patch 9.1.0408: configure fails on Fedora when including perlv9.1.0408Christian Brabandt
Problem: configure fails on Fedora when including perl (chesheer-smile) Solution: Filter out -spec=<path> from $LIBS and $LDFLAGS to avoid linking relocation errors for unrelated autoconf tests. closes: #14526 Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-11patch 9.1.0407: Stuck with long line and half-page scrollingv9.1.0407Luuk van Baal
Problem: No scrolling happens with half-page scrolling with line filling entire window when 'smoothscroll' is disabled. (Mathias Rav, after v9.1.0285) Solution: Adjust amount to move cursor by so that it is moved the same number of lines as was scrolled, even when scrolling different number of lines than requested with 'nosmoothscroll'. fixes: #14743 closes: #14746 Signed-off-by: Luuk van Baal <luukvbaal@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-11patch 9.1.0406: Divide by zero with getmousepos() and 'smoothscroll'v9.1.0406zeertzjq
Problem: Divide by zero with getmousepos() and 'smoothscroll'. Solution: Don't compute skip_lines when width1 is zero. (zeertzjq) closes: #14747 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-10patch 9.1.0405: tests: xxd buffer overflow fails on 32-bitv9.1.0405Christian Brabandt
Problem: tests: xxd buffer overflow fails on 32-bit Solution: Skip test on 32-bit architecture Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-10patch 9.1.0404: [security] xxd: buffer-overflow with specific flagsv9.1.0404Lennard Hofmann
Problem: [security] xxd: buffer-overflow with specific flags Solution: Correctly calculate the required buffer space (Lennard Hofmann) xxd writes each output line into a global buffer before printing. The maximum size of that buffer was not calculated correctly. This command was crashing in AddressSanitizer: $ xxd -Ralways -g1 -c256 -d -o 9223372036854775808 /etc/passwd This prints a line of 6680 bytes but the buffer only had room for 6549 bytes. If the output from "-b" was colored, the line could be even longer. closes: #14738 Co-authored-by: K.Takata <kentkt@csc.jp> Signed-off-by: Lennard Hofmann <lennard.hofmann@web.de> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-10patch 9.1.0403: Vim9: not able to import file from start dirv9.1.0403Yegappan Lakshmanan
Problem: Vim9: not able to import file from start dir (Danielle McLean) Solution: Allow to import from start directory (Yegappan Lakshmanan) fixes: #13313 closes: #14740 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-10patch 9.1.0402: filetype: mdd files detected as zsh filetypev9.1.0402Wu, Zhenyu
Problem: filetype: mdd files detected as zsh filetype Solution: detect '*.mdd' files as sh filetype, add links to reference documentation (Wu, Zhenyu) closes: #14741 Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-09patch 9.1.0401: filetype: zsh module files are not recognizedv9.1.0401Wu, Zhenyu
Problem: filetype: zsh module files are not recognized Solution: Detect '*.mdh' and '*.epro' as C filetype, '*.mdd' as zsh filetype, determine zsh-modules '*.pro' from from it's content (Wu, Zhenyu) closes: #14737 Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-09patch 9.1.0400: Vim9: confusing error message for unknown typev9.1.0400Yegappan Lakshmanan
Problem: Vim9: confusing error message for unknown type (Doug Kearns) Solution: For an unknown type, display only the type name in the error message (Yegappan Lakshmanan) fixes: #13153 closes: #14736 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-08patch 9.1.0399: block_editing errors out when using delv9.1.0399Christian Brabandt
Problem: block_editing errors out when using del (@Jamarley) Solution: Change ins_len from size_t to int and properly check that it doesn't become negative There is a check in os.c that verifies that `ins_len` does not become negative: ``` if (pre_textlen >= 0 && (ins_len = len - pre_textlen - offset) > 0) ``` However this only works, if ins_len can actually become negative and unfortunately, ins_len has been declared as `size_t` so instead of becoming negative it will wrap around and be very large. So let's define it as integer, after which the condition above properly catches this condition. fixes: #14734 closes: #14735 Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-08patch 9.1.0398: Vim9: imported vars are not properly type checkedv9.1.0398Yegappan Lakshmanan
Problem: Vim9: imported vars are not properly type checked Solution: Check the imported variable type properly (Yegappan Lakshmanan) closes: #14729 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-08patch 9.1.0397: Wrong display with 'smoothscroll' when changing quickfix listv9.1.0397zeertzjq
Problem: Wrong display with 'smoothscroll' when changing quickfix list. Solution: Reset w_skipcol when replacing quickfix list (zeertzjq). closes: #14730 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-08patch 9.1.0396: filetype: jj files are not recognizedv9.1.0396Gregory Anders
Problem: jj files are not recognized Solution: recognize '*.jjdescription' files as jj filetype (Gregory Anders) See: https://github.com/martinvonz/jj closes: #14733 Signed-off-by: Gregory Anders <greg@gpanders.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-08patch 9.1.0395: getregionpos() may leak memory on errorv9.1.0395Christian Brabandt
Problem: regionpos may leak memory on error, coverity complains about dereferencing Null pointer Solution: free all list pointers (after v9.1.394), return early if buflist_findnr() returns NULL closes: #14731 Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-07patch 9.1.0394: Cannot get a list of positions describing a regionv9.1.0394Shougo Matsushita
Problem: Cannot get a list of positions describing a region (Justin M. Keyes, after v9.1.0120) Solution: Add the getregionpos() function (Shougo Matsushita) fixes: #14609 closes: #14617 Co-authored-by: Justin M. Keyes <justinkz@gmail.com> Signed-off-by: Shougo Matsushita <Shougo.Matsu@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-04patch 9.1.0393: 'viewdir' not respecting $XDG_CONFIG_HOMEv9.1.0393Christian Brabandt
Problem: 'viewdir' not respecting $XDG_CONFIG_HOME (Danilo Rezende, after v9.1.327) Solution: adjust 'viewdir' option when enabling XDG config mode fixes: #14680 closes: #14708 Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-04patch 9.1.0392: tests: Vim9 debug tests may be flakyv9.1.0392Christian Brabandt
Problem: tests: Vim9 debug tests may be flaky (Shane-XB-Qian) Solution: Give a few more lines so that line-wrapping won't cause a hit-enter prompt The two tests Run_Test_debug_running_out_of_lines() and Run_Test_debug_with_lambda() test debugging of Vim script functions. Depending from what file-path the tests are run, it may cause line wrapping to occur on the following output: Entering Debug mode. Type "cont" to continue. command line..script /home/chrisbra/code/vim-upstream/src/testdir/XdebugFunc[15]..function <SNR>9_Crash and if the window is too small, this will cause a hit-enter prompt and so the WaitForAssert() fails, causing failure of the following tests. So increase the (internal) Vim window by a few more lines, so that even if line-wrapping occurs, no hit-enter prompts happens and so the tests can finish. fixes: #14596 closes: #14691 Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-03patch 9.1.0391: Vim9: could improve testingv9.1.0391Yegappan Lakshmanan
Problem: Vim9: could improve testing (Ernie Rael) Solution: Support defcompile for test_override() to improve testing (Yegappan Lakshmanan) fixes: #14553 closes: #14712 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-02patch 9.1.0390: filetype: inko files are not recognizedv9.1.0390Yorick Peterse
Problem: filetype: inko files are not recognized Solution: Detect '*.inko' as ink filetype (Yorick Peterse) See: - https://github.com/inko-lang/inko.vim - https://inko-lang.org/ closes: #14699 Signed-off-by: Yorick Peterse <git@yorickpeterse.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-02patch 9.1.0389: filetype: templ files are not recognizedv9.1.0389tris203
Problem: filetype: templ files are not recognized Solution: Detect '*.templ' files as filetype templ (Tristan Knight) See: - https://github.com/a-h/templ - https://templ.guide/ closes: #14697 Signed-off-by: tris203 <admin@snappeh.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-02patch 9.1.0388: cursor() and getregion() don't handle v:maxcol wellv9.1.0388zeertzjq
Problem: cursor() and getregion() don't handle v:maxcol well. Solution: Add special handling for v:maxcol like setpos() does. (zeertzjq) closes: #14698 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-02patch 9.1.0387: Vim9: null value tests not sufficientv9.1.0387Yegappan Lakshmanan
Problem: Vim9: null value tests not sufficient Solution: Add a more comprehensive test for null values (Yegappan Lakshmanan) closes: #14701 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-01patch 9.1.0386: filetype: stylus files not recognizedv9.1.0386Philip H
Problem: filetype: stylus files not recognized Solution: Detect '*.styl' and '*.stylus' as stylus filetype, include indent, filetype and syntax plugin (Philip H) closes: #14656 Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>