summaryrefslogtreecommitdiffstats
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-23runtime(comment): add missing help tags fileChristian Brabandt
fixes: #14829 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-22runtime(rescript): include basic rescript ftplugin file (#14822)Riley Bruins
Reference: https://rescript-lang.org/docs/manual/latest/overview#comments Signed-off-by: Riley Bruins <ribru17@hotmail.com> 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-22CI: disable -O2 for Coverity after v9.1.0429Christian Brabandt
gcc -O2 outputs this warning and turns it into an error when running Coverity action: ``` eval.c: In function ‘echo_string_core’: cc1: warning: function may return address of local variable [-Wreturn-local-addr] eval.c:6495:12: note: declared here 6495 | char_u buf[MAX_FUNC_NAME_LEN]; | ^~~ ``` This seems to be a false positive, so disable -O2 for Coverity specifically. 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-21runtime(zig): refactor zig ftplugin, remove auto formatTiseno
Refactored zig ftplugin, removed upstream comment, aucmd and auto formatting support. Updated documentation for zig configuration settings and added new maintainer. closes: #13803 Signed-off-by: Tiseno <mathias.lindgren@stabelo.se> 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-20runtime(matchit): update matchit plugin to v1.20Christian Brabandt
fixes: #14814 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-20runtime(verilog): set commentstring optionRiley Bruins
closes: #14810 Signed-off-by: Riley Bruins <ribru17@hotmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-20runtime(vb): update vb indent plugin as vim9scriptMichael Soyka
Include an updated vb indent script using vim9script. Also update the runtime indent test files Signed-off-by: Michael Soyka <mssr953@gmail.com> 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-20runtime(nim): basic nim ftplugin file for comments (#14812)Riley Bruins
Reference: https://nim-by-example.github.io/comments/#:~:text=Comments%20in%20Nim%20begin%20with%20the%20hash%20character.&text=Multiline%20or%20block%20comments%20begin,line%20comments%20can%20be%20nested. Signed-off-by: Riley Bruins <ribru17@hotmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-20runtime(arduino): Add Arduino ftplugin and indent files (#14811)K.Takata
We already have Arduino syntax file, but we didn't have ftplugin and indent files. This commit adds a basic ftplugin file and a basic indent file. Both of them are derived from {ftplugin,indent}/c.vim. Signed-off-by: Ken Takata <kentkt@csc.jp> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-20runtime(typst): include basic typst ftplugin file (#14809)Riley Bruins
Reference: https://typst.app/docs/reference/syntax/#comments Signed-off-by: Riley Bruins <ribru17@hotmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-20runtime(prisma): include basic prisma ftplugin file (#14807)Riley Bruins
Reference: https://www.prisma.io/docs/orm/prisma-schema/overview#comments Signed-off-by: Riley Bruins <ribru17@hotmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-20runtime(v): include basic v ftplugin for comment support (#14806)Riley Bruins
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-19runtime(dart): add basic dart ftplugin fileRiley Bruins
fixes #14793 closes #14802 Signed-off-by: Riley Bruins <ribru17@hotmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-19runtime(graphql): basic ftplugin file for graphqlRiley Bruins
closes: #14801 Signed-off-by: Riley Bruins <ribru17@hotmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-19runtime(doc): mention comment plugin at :h 'commentstring'Christian Brabandt
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-19runtime(sql): set commentstring for sql files in ftpluginRiley Bruins
closes: #14800 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-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>