summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
2024-06-22patch 9.1.0514: Vim9: issue with comparing objects recursivelyv9.1.0514LemonBoy
Problem: Vim9: issue with comparing objects recursively (Yinzuo Jiang) Solution: only set recursive == TRUE, when called from tv_equal(), not from typeval_compare_object(), refactor code into object_equal() function (LemonBoy) The recursive flag in tv_equal should be set only when the caller is tv_equal, meaning that the comparison depth is > 1. The comparison predicates for other object types are all following this rule, except for the object one, and that may cause some weird issues like causing the max depth limit not to be initialized in some cases. closes: #15076 Signed-off-by: LemonBoy <thatlemon@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-22patch 9.1.0513: Vim9: segfault with object comparisonv9.1.0513Ernie Rael
Problem: Vim9: segfault with object comparisons Solution: increment recusive_cnt before calling typval_compare_object() (Ernie Rael) closes: #15073 Signed-off-by: Ernie Rael <errael@raelity.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-21patch 9.1.0512: Mode message for spell completion doesn't match allowed keysv9.1.0512zeertzjq
Problem: Mode message for spell completion doesn't match allowed keys (Kyle Kovacs) Solution: Show "^S" instead of "s". (zeertzjq) This matches the code in vim_is_ctrl_x_key(): case CTRL_X_SPELL: return (c == Ctrl_S || c == Ctrl_P || c == Ctrl_N); fixes: neovim/neovim#29431 closes: #15065 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-21patch 9.1.0511: CursorMovedC triggered wrongly with setcmdpos()v9.1.0511zeertzjq
Problem: CursorMovedC triggered wrongly with setcmdpos() (after v9.1.0507) Solution: Remove the premature triggering. Also don't trigger when cursor didn't move. (zeertzjq) closes: #15064 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-21patch 9.1.0510: CI: test_gettext fails on MacOS14 + MSVC Winv9.1.0510Christian Brabandt
Problem: CI: test_gettext fails on MacOS14 + MSVC Win (after v9.1.0509) Solution: Skip the test for now related: #12447 Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-20patch 9.1.0509: not possible to translate Vim script messagesv9.1.0509Christ van Willegen
Problem: not possible to translate Vim script messages (RestorerZ) Solution: implement bindtextdomain() and gettext() to support Vim script message translations (Christ van Willegen) fixes: #11637 closes: #12447 Signed-off-by: Christ van Willegen <cvwillegen@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-20patch 9.1.0508: termdebug plugin can be further improvedv9.1.0508Ubaldo Tiberi
Problem: termdebug plugin can be further improved Solution: add sanity-check, timeout config, change vars to bool update docs, add more tests (Ubaldo Tiberi) fixes: #15061 closes: #15057 Signed-off-by: Ubaldo Tiberi <ubaldo.tiberi@google.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-20patch 9.1.0507: hard to detect cursor movement in the command linev9.1.0507Shougo Matsushita
Problem: hard to detect cursor movement in the command line Solution: Add the CursorMovedC autocommand (Shougo Matsushita) closes: #15040 Signed-off-by: Shougo Matsushita <Shougo.Matsu@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-20patch 9.1.0506: filetype: .envrc & .prettierignore not recognizedv9.1.0506Tyler Miller
Problem: filetype: .envrc & .prettierignore not recognized Solution: Detect '.envrc' as shell and '.prettierignore' as gitignore filetype (Tyler Miller) Support ft detection for `.envrc` files used by direnv, and `.prettierignore` files used by prettier. closes: #15053 resolves: neovim/neovim#29405 Signed-off-by: Tyler Miller <tmillr@proton.me> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-19patch 9.1.0505: filetype: Faust files are not recognizedv9.1.0505PowerUser64
Problem: filetype: Faust files are not recognized Solution: Detect '*.lib' files as Faust filetype, add detection for '*.dsp' files (Faust or Make), remove '*.lib' from Cobol filetype (PowerUser64) closes: #14894 Signed-off-by: PowerUser64 <blake@blakenorth.net> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-19patch 9.1.0504: inner-tag textobject confused about ">" in attributesv9.1.0504Christian Brabandt
Problem: inner-tag textobject confused about ">" in attributes Solution: Skip over quoted '>' when determining the start position fixes: #15043 closes: #15049 Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-19patch 9.1.0503: cannot use fuzzy keyword completionv9.1.0503glepnir
Problem: cannot use fuzzy keyword completion (Maxim Kim) Solution: add the "fuzzycollect" value for the 'completeopt' setting, to gather matches using fuzzy logic (glepnir) fixes: #14912 closes: #14976 Signed-off-by: glepnir <glephunter@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-19patch 9.1.0502: MS-Windows: too much legacy codev9.1.0502K.Takata
Problem: MS-Windows: too much legacy code Solution: Clean up old code (Ken Takata) * Remove very old codes for Cygwin version of GCC. Nowadays Cygwin GCC cannot be used for building Win32 Vim. (The `-mno-cygwin` option was removed in Cygwin GCC4.) * Remove old codes for old versions of MinGW. Remove `__MINGW32__` as much as possible. * Adjust makefile. closes: #15044 Signed-off-by: K.Takata <kentkt@csc.jp> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-19patch 9.1.0501: too complicated mapping restore in termdebugv9.1.0501Ubaldo Tiberi
Problem: too complicated mapping restore in termdebug Solution: simplify unmapping logic, add a few more tests (Ubaldo Tiberi) closes: #15046 Signed-off-by: Ubaldo Tiberi <ubaldo.tiberi@google.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-18patch 9.1.0500: cannot switch buffer in a popupv9.1.0500Christian Brabandt
Problem: cannot switch buffer in a popup (Yggdroot) Solution: add popup_setbuf() function fixes: #15006 closes: #15026 Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-18patch 9.1.0499: MS-Windows: doesn't handle symlinks properlyv9.1.0499LemonBoy
Problem: MS-Windows: doesn't handle symlinks properly (Timothy Madden) Solution: Implement lstat() on MS-Windows (author) lstat() differs from stat() in how it handles symbolic links, the former doesn't resolve the symlink while the latter does so. Implement a simple yet effective fallback using Win32 APIs. fixes #14933 closes: #15014 Co-authored-by: K.Takata <kentkt@csc.jp> Signed-off-by: LemonBoy <thatlemon@gmail.com> Signed-off-by: K.Takata <kentkt@csc.jp> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-18patch 9.1.0498: getcmdcompltype() interferes with cmdline completionv9.1.0498zeertzjq
Problem: getcmdcompltype() interferes with cmdline completion. Solution: Don't set expand context when it's already set. (zeertzjq) closes: #15036 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-18patch 9.1.0497: termdebug can be further improvedv9.1.0497Ubaldo Tiberi
Problem: termdebug can be further improved Solution: refactor save/restore, update docs, add a new save/restore test (Ubaldo Tiberi) closes: #15032 Signed-off-by: Ubaldo Tiberi <ubaldo.tiberi@google.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-18translation(tr): Improve Turkish documentationEmir SARI
closes: #15041 Signed-off-by: Emir SARI <emir_sari@icloud.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-17patch 9.1.0496: matched text is highlighted case-sensitivelyv9.1.0496glepnir
Problem: matched text is highlighted case-sensitively Solution: use MB_STRNICMP, update highlighting when the base changes (glepnir) fixes: #15021 closes: #15023 Co-authored-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: glepnir <glephunter@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-17patch 9.1.0495: Matched text isn't highlighted in cmdline pumv9.1.0495zeertzjq
Problem: Matched text isn't highlighted in cmdline pum. Solution: Use cmdline completion pattern in cmdline mode. (zeertzjq) closes: #15029 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-16patch 9.1.0494: Wrong matched text highlighted in pum with 'rightleft'v9.1.0494zeertzjq
Problem: Wrong matched text highlighted in pum with 'rightleft'. Solution: Match using the original text instead of the reversed text. (zeertzjq) closes: #15020 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-16patch 9.1.0493: Test for patch 9.1.0489 doesn't fail without the fixv9.1.0493zeertzjq
Problem: Test for patch 9.1.0489 doesn't fail without the fix. Solution: Use "!" flag of feedkeys() so that ex_normal_busy is not set and ins_compl_check_keys() is not skipped (zeertzjq). closes: #15018 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-16patch 9.1.0492: filetype: Vim-script files not detected by shebang linev9.1.0492Doug Kearns
Problem: Vim-script files may not be recognised Solution: Add shebang line detection (Doug Kearns) closes: #15012 Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-15patch 9.1.0491: Cmdline pum doesn't work properly with 'rightleft'v9.1.0491zeertzjq
Problem: Cmdline pum doesn't work properly with 'rightleft'. Solution: Don't use curwin->w_p_rl in cmdline mode in pum_redraw(). Use a static variable since pum_may_redraw() may be called in any mode. Also correct position of other popups with 'rightleft'. (zeertzjq) closes: #15005 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-15patch 9.1.0490: minor style problems with patch 9.1.0487v9.1.0490glepnir
Problem: minor style problems with patch 9.1.0487 Solution: use shown_compl instead of after_first_compl variable (glepnir) closes: #15008 Signed-off-by: glepnir <glephunter@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org> fix(completion): use exist shown_compl instead after_first_compl
2024-06-15patch 9.1.0489: default completion may break with fuzzyv9.1.0489glepnir
Problem: default completion may break with fuzzy Solution: check that completion_match_array is not null (glepnir) closes: #15010 Signed-off-by: glepnir <glephunter@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-15patch 9.1.0488: Wrong padding for pum "kind" with 'rightleft'v9.1.0488zeertzjq
Problem: Wrong padding for pum "kind" with 'rightleft'. Solution: Fix off-by-one error (zeertzjq). The screen_fill() above is end-exclusive, and - With 'rightleft' it fills `pum_col - pum_base_width - n + 1` to `col`, so the next `col` should be `pum_col - pum_base_width - n`. - With 'norightleft' it fills `col` to `pum_col - pum_base_width + n - 1`, so the next `col` should be `pum_col - pum_base_width + n`. closes: #15004 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-14patch 9.1.0487: completed item not update on fuzzy completionv9.1.0487glepnir
Problem: completed item not update on fuzzy completion Solution: reset compl_shown_match when at original match position (glepnir) closes: #14955 Signed-off-by: glepnir <glephunter@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-14patch 9.1.0486: filetype: Snakemake files are not recognizedv9.1.0486Riley Bruins
Problem: filetype: Snakemake files are not recognized Solution: Detect '*.smk' and Snakefile files as snakemake filetype (Riley Bruins) See: https://snakemake.readthedocs.io/en/stable/snakefiles/deployment.html#distribution-and-reproducibility closes: #14992 Co-authored-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Riley Bruins <ribru17@hotmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-14patch 9.1.0485: Matched text shouldn't be highlighted in "kind" and "menu"v9.1.0485zeertzjq
Problem: Matched text shouldn't be highlighted in "kind" and "menu". Solution: Pass hlf_T instead of the attribute. Fix indent. (zeertzjq) closes: #14996 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-14patch 9.1.0484: Sorting of completeopt+=fuzzy is not stablev9.1.0484zeertzjq
Problem: Sorting of completeopt+=fuzzy is not stable. Solution: Compare original indexes when scores are the same. (zeertzjq) closes: #14988 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-13patch 9.1.0483: glob() not sufficiently testedv9.1.0483Christian Brabandt
Problem: glob() not sufficiently tested Solution: Add more tests for directory containing [] chars related: #14991 Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-13patch 9.1.0482: termdebug plugin needs more lovev9.1.0482Ubaldo Tiberi
Problem: termdebug plugin needs more love Solution: start with some more Vim9 refactoring to improve maintenance and readability (Ubaldo Tiberi) List of Changes and the Reasoning Behind Them: 1) Introduction of InitScriptVariables() Function: Reasoning: This function has been introduced to ensure that when you open and close Termdebug, and then open it again, there are no leftover script variable values from the previous session. Leftover values could potentially cause issues. The goal is for each Termdebug session to be independent of previous sessions. At startup, all script variables are initialized. The only exception is g:termdebug_loaded located at the very beginning of the script to prevent sourcing the script twice. The variables are declared at script level and defined in InitScriptVariables(). 2) More Descriptive Variable Names: Reasoning: The names of variables have been made more comprehensive. Almost every Termdebug buffer now has a variable to indicate its name and another variable to indicate its number, improving code readability and maintainability. Due to the latest discussion around the &mousemodel option save/restore mechanism, perhaps some other variables shall be prepended with saved_. 3) Consistent Naming for GDB Terminal Buffers: Reasoning: The name of the GDB terminal buffer now matches the name of the GDB program being used, e.g., 'gdb', 'mygdb', 'arm-eabi-none-gdb', etc. This ensures clarity and consistency in identifying buffers. 4) Other minor improvements: Moved EchoErr() on top, added another test, some refactoring, mainly changed several 0 and 1 to true and false closes: #14980 Signed-off-by: Ubaldo Tiberi <ubaldo.tiberi@volvo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-13patch 9.1.0481: Vim9: term_getjob() throws an exception on errorv9.1.0481Ernie Rael
Problem: Vim9: term_getjob() throws an exception on error Solution: Return null_job instead, when there is no job (Ernie Rael) closes: #14984 Signed-off-by: Ernie Rael <errael@raelity.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-13patch 9.1.0480: fuzzy string matching executed when not neededv9.1.0480glepnir
Problem: fuzzy string matching executed when not needed Solution: when no leader is available, can skip fuzzy logic, so return early (glepnir) closes: #14986 Signed-off-by: glepnir <glephunter@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-13patch 9.1.0479: fuzzy_match_str_with_pos() does unnecessary list operationsv9.1.0479zeertzjq
Problem: fuzzy_match_str_with_pos() does unnecessary list operations. Solution: Use fuzzy_match() directly (zeertzjq). closes: #14987 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-12patch 9.1.0478: potential deref of NULL pointer in fuzzy_match_str_with_posv9.1.0478glepnir
Problem: potential deref of NULL pointer in fuzzy_match_str_with_pos() on cleanup (after v9.1.0476) Solution: Only free the pointer if it is non-NULL (glepnir) closes: #14973 Signed-off-by: glepnir <glephunter@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-11patch 9.1.0477: block_editing errors out when using <enter>v9.1.0477Christian Brabandt
Problem: block_editing errors out when using <enter> (Ali Rizvi-Santiago, after v9.1.0274) Solution: Change ins_len from size_t to int so that the test if ins_len is negative actually works properly Add a test, so that this doesn't regress. fixes: #14960 Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-11patch 9.1.0476: Cannot see matched text in popup menuv9.1.0476glepnir
Problem: Cannot see matched text in popup menu Solution: Introduce 2 new highlighting groups: PmenuMatch and PmenuMatchSel (glepnir) ping @habamax, @neutaaaaan @romainl because vim/colorschemes may need some updates, @lifepillar for updating vim-colortemplate closes: #14694 Signed-off-by: glepnir <glephunter@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-11patch 9.1.0475: cmod_split modifier is always reset in term_start()v9.1.0475Yegappan Lakshmanan
Problem: cmod_split modifier is always reset in term_start() Solution: only clear the WSP_VERT flag, if it is not already in cmdmod.cmod_split (Yegappan Lakshmanan) closes: #14961 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-10patch 9.1.0474: CI: Test_ColonEight() fails on github runnersv9.1.0474Christian Brabandt
Problem: CI: Test_ColonEight() fails on github runners (Ken Takata) Solution: Run the test for files on the C: drive, where dos shortnames are still enabled, refactor the tests to use a single setup function for the preparation fixes: #14954 closes: #14958 Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-10patch 9.1.0473: term_start() does not clear vertical modifierv9.1.0473Yegappan Lakshmanan
Problem: term_start() does not clear vertical modifier Solution: Clear the flag after splitting the window (Yegappan Lakshmanan) closes: #14953 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-09patch 9.1.0472: Inconsistencies between functions for option flagsv9.1.0472zeertzjq
Problem: Inconsistencies between functions for option flags. Solution: Consistently use "unsigned int" as return type and rename get_bkc_value() to get_bkc_flags() (zeertzjq). closes: #14925 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-09patch 9.1.0471: Crash when using autocmd_get() after removing event inside ↵v9.1.0471zeertzjq
autocmd Problem: Crash when using autocmd_get() after removing event inside autocmd (Sergey Vlasov) Solution: Check that the pattern is NULL (zeertzjq). fixes: #14937 closes: #14939 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-05patch 9.1.0470: tests: Test_ColonEight_MultiByte() fails sporadicallyv9.1.0470Christian Brabandt
Problem: tests: Test_ColonEight_MultiByte() fails on MS-Windows Solution: mark test as flaky This single line change should have happened as part of v9.1.469 (and I mentioned it in the Commit message), but forgot to actually include the change :facepalm Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-05patch 9.1.0469: Cannot have buffer-local value for 'completeopt'v9.1.0469zeertzjq
Problem: Cannot have buffer-local value for 'completeopt' (Nick Jensen). Solution: Make 'completeopt' global-local (zeertzjq). Also for some reason test Test_ColonEight_MultiByte seems to be failing sporadically now. Let's mark it as flaky. fixes: #5487 closes: #14922 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-05patch 9.1.0468: GvimExt does not consult HKEY_CURRENT_USERv9.1.0468David Wagner
Problem: GvimExt does not consult HKEY_CURRENT_USER Solution: Make GvimExt first consult HKEY_CURRENT_USER and then fall back to HKEY_LOCAL_MACHINE to find gvim (David Wagner) fixes: #14904 closes: #14917 Signed-off-by: David Wagner <dwagner@rydia.us> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-05patch 9.1.0467: typos in some commentsv9.1.0467zeertzjq
Problem: typos in some comments (after v9.1.0466) Solution: fix comments (zeertzjq) closes: #14919 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-04patch 9.1.0466: Missing comments for fuzzy completionv9.1.0466glepnir
Problem: Missing comments for fuzzy completion (after 9.1.0463) Solution: Add more comments, adjust indentation slightly (glepnir) closes: #14910 Signed-off-by: glepnir <glephunter@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>