summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2024-05-18runtime(doc): clarify why E195 is returnedChristian Brabandt
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-18runtime(doc): clarify temporary file clean upChristian Brabandt
related: #14770 Co-authored-by: Enno <Konfekt@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-18runtime(matchparen): fix :NoMatchParen not working (#14797)zeertzjq
fixes: neovim/neovim#28828 Signed-off-by: zeertzjq <zeertzjq@outlook.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-17runtime(sshdconfig): add basic ftplugin file for sshdconfig (#14790)Yinzuo Jiang
Signed-off-by: Yinzuo Jiang <jiangyinzuo@foxmail.com> 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-17runtime(doc): clarify instal instructions for comment packageChristian Brabandt
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-16runtime(doc): fix typo in vim9script help file (#14782)jbm950
This commit fixes a typo in the first example of the vim9script help file. Trying to execute the given example before resulted in a "trailing characters" error. Signed-off-by: jbm950 <jmilam343@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-16runtime(doc): Remove trailing spaces (#14784)K.Takata
Fix the issues introduced by #14770.
2024-05-15runtime(doc): clarify {special} argument for shellescape()Enno
closes: #14770 Signed-off-by: Enno <Konfekt@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-15CI: Upload failed screendump tests when run in github actionsChristian Brabandt
It's a bit of a pain to debug failing screendump tests without knowing exactly what went wrong. Therefore include actions/upload-artifact for the Github CI runners and have them uploaded those failing screen dump tests automatically. Let's add this step to each of the Linux/MacOS/Windows workflows but do not duplicate the code, factor it out to a single file .github/actions/screendump/action.yml and reference this one from the main ci.yml file Example: https://github.com/chrisbra/vim/actions/runs/9085493619 closes: #14771 Co-authored-by: dundargoc <gocdundar@gmail.com> Co-authored-by: Aliaksei Budavei <0x000c70@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-15runtime(doc): add missing entries for the keys CTRL-W g<Tab> and <C-Tab>Christian Brabandt
fixes: #14777 Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-15runtime(doc): update vi_diff.txt: add default value for 'flash'Cthulhux
The "flash" option was added relatively late and seems to be exclusive to System V. (It's not in 4.4BSD and it's not in V8 UNIX, checked [on TUHS](https://www.tuhs.org/cgi-bin/utree.pl).) The oldest occurrence of `flash` in "a vi" I could find is in SysV R2 for the VAX, where it [defaults to 1](https://github.com/ryanwoodsmall/oldsysv/blob/master/sysvr2-vax/src/cmd/vi/vax/ex_data.c) = on. closes: #14778 Signed-off-by: Cthulhux <github@tuxproject.de> 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-13runtime(i3config/swayconfig): allow indented commands (#14757)Josef Litoš
fixes: #14752 Co-authored-by: jamespeapen <jamespeapen@users.noreply.github.com> Signed-off-by: Josef Litoš <54900518+JosefLitos@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-13runtime(python): Fix wrong define regex in ftplugin (#14763)Tom Picton
Signed-off-by: Tom Picton <tom@tompicton.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-13runtime(syntax-tests): Filter out non-Latin-1 characters for syntax tests ↵Aliaksei Budavei
(#14767) Syntax tests are run with the LC_ALL=C environment variable passed to "make". Occasionally, there are CI failures for such test files containing non-Latin-1 characters with error messages pointing to multi-byte characters: https://github.com/vim/vim/actions/runs/8824925004/job/24228298023#step:10:16370 , https://github.com/vim/vim/actions/runs/8840856619/job/24276935260#step:10:16347 , https://github.com/vim/vim/actions/runs/8854043458/job/24316210645#step:10:16362 , https://github.com/vim/vim/actions/runs/8856501136/job/24322848765#step:10:16354 , https://github.com/vim/vim/actions/runs/9038417238/job/24839482152#step:11:16980 . But since the very same unchanged tests pass at other times: https://github.com/vim/vim/actions/runs/8827593571/job/24235935458#step:10:16353 , https://github.com/vim/vim/actions/runs/9065214647/job/24905321661#step:11:17002 ; these failures are unrelated to the nature of syntax tests and should be considered false positives. As a temporary workaround, all bytes of known non-Latin-1 characters can be replaced in memory with an arbitrary ASCII byte (?) by applying a filter > " To ignore part of the dump, provide a "dumps/{filename}.vim" file with > " Vim commands to be applied to both the reference and the current dump, so > " that parts that are irrelevant are not used for the comparison. The result > " is NOT written, thus "term_dumpdiff()" shows the difference anyway. before lines are compared between files. Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-13runtime(netrw): prefer scp over pscpChristian Brabandt
regression introduced in ce2ad9ffd79fe6b2307cd46b9 The current logic is a bit funny, in that it checks for an executable of scp, then pscp and if neither exists, it uses: scp :/ Anyway, let's fall back to the logic used before the above commit. related: #14739 Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-12runtime(doc): fix typo in usr_52.txtChristian Brabandt
fixes: #14758 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-11ftplugin(python): E16 fix, async keyword support for define (#14751)Tom Picton
This change includes the following changes: - Fix "E16: Invalid range" when using a count with jump to start/end of class/method - Update define with optional async keyword - Update maintainer email Signed-off-by: Tom Picton <tom@tompicton.com> 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-11runtime(doc): update and remove some invalid linksChristian Brabandt
closes: #14748 Co-authored-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-10translation(it): update translation of xxd manpageAntonio Giovanni Colombo
Signed-off-by: Antonio Giovanni Colombo <azc100@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-10runtime(netrw): Recursively delete directories by default with netrw delete ↵Nir Lichtman
command closes: #14742 Signed-off-by: Nir Lichtman <nir@lichtman.org> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-10runtime(java): Strive to remain compatible for at least Vim 7.0 (#14744)Aliaksei Budavei
Also: - Limit all look-behind regexp patterns. - Cache regexp capabilities for [:upper:] and [:lower:]. Signed-off-by: Aliaksei Budavei <0x000c70@gmail.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-10runtime(java): Stop handpicking syntax groups for @javaTop (#14727)Aliaksei Budavei
* runtime(java): Stop handpicking syntax groups for @javaTop Also: - Remove the obsolete comment for g:java_allow_cpp_keywords. - Remove the commented out groups java\%[Debug\]StringError. - Infer and set the preferred formatting Vim options from the modeline. Since vim-6-0u, non-contained syntax groups can be referred to by using the "contains=TOP..." argument. * Set &encoding and &termencoding to "utf-8" for test files * Limit non-ASCII charset to [§ƒɐɘʬʭΑ-Τα-μ] for test files Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com> 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-09runtime(netrw): Remove hardcoded private.ppk logic from netrwNir Lichtman
closes: #14739 Signed-off-by: Nir Lichtman <nir@lichtman.org> 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-08runtime(spec): add new items to scripts section in syntax pluginMaxwell G
- %generate_buildrequires — added in RPM 4.15 - %conf — added in RPM 4.18 closes: #14723 Ref: https://rpm-software-management.github.io/rpm/manual/spec.html#build-scriptlets Signed-off-by: author 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-08The CODEOWNERS File is not usefulChristian Brabandt
Github is complaining about "This file has errors" and is just noisy and for that reason does not ping maintainers if a new issue/PR is created. Let's just rename it to MAINTAINERS file instead and update the documentation. Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-08runtime(netrw): Remove and cleanup Win9x legacy from netrwNir Lichtman
closes: #14732 Signed-off-by: Nir Lichtman <nir@lichtman.org> Signed-off-by: Christian Brabandt <cb@256bit.org>