aboutsummaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAge
* vim-patch:9.0.1467: Jenkinsfiles are not recognized as groovy (#23195)Christian Clason2023-04-19
| | | | | | | | Problem: Jenkinsfiles are not recognized as groovy. Solution: Add a pattern for Jenkinsfiles. (closes vim/vim#12236) https://github.com/vim/vim/commit/142ffb024dd5123090c2fd02f55702e76520f1df Co-authored-by: dundargoc <gocdundar@gmail.com>
* vim-patch:9.0.1464: strace filetype detection is expensive (#23175)Christian Clason2023-04-19
| | | | | | | | | Problem: Strace filetype detection is expensive. Solution: Match with a cheap pattern first. (Federico Mengozzi, closes vim/vim#12220) https://github.com/vim/vim/commit/6e5a9f948221b52caaaf106079cb3430c4dd7c77 Co-authored-by: Federico Mengozzi <19249682+fedemengo@users.noreply.github.com>
* test(terminal/channel_spec): fix screen test immediate success (#23192)zeertzjq2023-04-19
| | | Check for the [No Name] after wiping the buffer.
* vim-patch:9.0.1034: reporting swap file when windows are splitzeertzjq2023-04-19
| | | | | | | | | Problem: Reporting swap file when windows are split. Solution: Close extra windows after running a test. https://github.com/vim/vim/commit/e5eae82bb7199bd71c6216269e78c69e9a793c8f Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:9.0.1021: test trips over g:namezeertzjq2023-04-19
| | | | | | | | | Problem: Test trips over g:name. Solution: Delete g:name after using it. https://github.com/vim/vim/commit/d6e74f547910d5273a3b99c23fb3197131c7d379 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:9.0.1020: tests call GetSwapFileList() before it is definedzeertzjq2023-04-19
| | | | | | | | | | Problem: Tests call GetSwapFileList() before it is defined. Solution: Move the call to after defining the function. (Christopher Plewright) https://github.com/vim/vim/commit/6572a90287c7aa6e8042b18604891e9df3657245 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:9.0.1012: tests may get stuck in buffer with swap filezeertzjq2023-04-19
| | | | | | | | | Problem: Tests may get stuck in buffer with swap file. Solution: Bail out when bwipe! doesn't get another buffer. https://github.com/vim/vim/commit/fa2533c8bb96abcec29b9dc6bd4fe7054c7c7e50 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:9.0.1010: stray warnings for existing swap fileszeertzjq2023-04-19
| | | | | | | | | Problem: Stray warnings for existing swap files. Solution: Wipe out the buffer until it has no name and no swap file. https://github.com/vim/vim/commit/23526d2539e8679ea8df14e3a018101dedc3f391 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:9.0.1009: test for catch after interrupt is flaky on MS-Windowszeertzjq2023-04-19
| | | | | | | | | Problem: Test for catch after interrupt is flaky on MS-Windows. Solution: Mark the test as flaky. https://github.com/vim/vim/commit/72b5b0d51aa9ddf8d338a5a133a667a3c2392ae1 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:9.0.1008: test for swapfilelist() fails on MS-Windowszeertzjq2023-04-19
| | | | | | | | | Problem: Test for swapfilelist() fails on MS-Windows. Solution: Only check the tail of the path. Mark a test as flaky. https://github.com/vim/vim/commit/6cf3151f0e3839332c89367b7384c395a1185927 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:9.0.1007: there is no way to get a list of swap file nameszeertzjq2023-04-19
| | | | | | | | | | | | | | | | | | | | | Problem: There is no way to get a list of swap file names. Solution: Add the swapfilelist() function. Use it in the test script to clean up. Remove deleting individual swap files. https://github.com/vim/vim/commit/c216a7a21a25a701b84b79abc1ba6ab0baa3a311 vim-patch:9.0.1005: a failed test may leave a swap file behind Problem: A failed test may leave a swap file behind. Solution: Delete the swap file to avoid another test to fail. Use another file name. https://github.com/vim/vim/commit/d0f8d39d20f8d42f7451f781f7be0bcd20e06741 Cherry-pick test_window_cmd.vim changes from patch 8.2.1593. Remove FUNC_ATTR_UNUSED from eval functions as fptr is always unused. Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:9.0.0561: when a test gets stuck it just hangs foreverzeertzjq2023-04-19
| | | | | | | | | | | | Problem: When a test gets stuck it just hangs forever. Solution: Set a timeout of 30 seconds. https://github.com/vim/vim/commit/3bcd0ddc2deb34794c735c6ea0b8f964b510c6db Note: This doesn't cause test_timers.vim failures in Nvim because there is a SetUp() function that calls timer_stopall(). Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:9.0.0560: elapsed time since testing started is not visiblezeertzjq2023-04-19
| | | | | | | | | Problem: Elapsed time since testing started is not visible. Solution: Show the elapsed time while running tests. https://github.com/vim/vim/commit/b9093d50098ccff3848c2a404b9d0324a074c7b7 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:9.0.0545: when a test is slow and CI times out there is no time infozeertzjq2023-04-19
| | | | | | | | | Problem: When a test is slow and CI times out there is no time info. Solution: Add the elapsed time to the "Executing" message. https://github.com/vim/vim/commit/daaa3d9965d74faf1f75aea218822bfb7ba687a7 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:9.0.0514: terminal test sometimes hangszeertzjq2023-04-19
| | | | | | | | | Problem: Terminal test sometimes hangs. Solution: Add a bit more information to the test output. (issue vim/vim#11179) https://github.com/vim/vim/commit/a22c56a59a1e60f6976e61d16001623424a26b3a Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:9.0.0426: failed flaky tests reports only start timezeertzjq2023-04-19
| | | | | | | | | Problem: Failed flaky tests reports only start time. Solution: Also report the end time. https://github.com/vim/vim/commit/65258d36ddfab371c7982343efc9b2533ba39075 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:9.0.0372: MS-Windows: "%T" time format does not appear to workzeertzjq2023-04-19
| | | | | | | | | Problem: MS-Windows: "%T" time format does not appear to work. Solution: Use "%H:%M:%S" instead. https://github.com/vim/vim/commit/5fbbec180b623cd6ebfc9528be6fa70b4cf664d4 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:9.0.0369: a failing flaky test doesn't mention the timezeertzjq2023-04-19
| | | | | | | | | Problem: A failing flaky test doesn't mention the time. Solution: Add the time for debugging. Improve error message. https://github.com/vim/vim/commit/06d32a0c177e4166ff0491668cd459464bc2ef45 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:9.0.1469: deferred functions not called from autocommandszeertzjq2023-04-19
| | | | | | | Problem: Deferred functions not called from autocommands. Solution: Also go through the funccal_stack. (closes vim/vim#12267) https://github.com/vim/vim/commit/960cf9119e3f4922ca9719feb5e0c0bc5e3b9840
* vim-patch:9.0.1468: recursively calling :defer function if it does :qazeertzjq2023-04-19
| | | | | | | | Problem: Recursively calling :defer function if it does :qa in a compiled function. Solution: Clear the defer entry before calling the function. (closes vim/vim#12271) https://github.com/vim/vim/commit/a1f2b5ddc63d4e2b6ab047d8c839dd8477b36aba
* vim-patch:9.0.1462: recursively calling :defer function if it does :qazeertzjq2023-04-19
| | | | | | | | | Problem: Recursively calling :defer function if it does :qa. Solution: Clear the defer entry before calling the function. (closes vim/vim#12266) https://github.com/vim/vim/commit/42994bf678f46dc9ca66e49f512261da8864fff6 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* fix(api): extmark highlight groups not always included in details (#23179)luukvbaal2023-04-18
| | | | Problem: Erroneous for loop condition. Solution: Remove for loop condition.
* Merge pull request #23005 from seandewar/fix-ruf-cmdline-posSean Dewar2023-04-18
|\ | | | | fix(ruler): fix some ruler issues with no statusline
| * fix(ruler): show ruler of curwin with no statusline in cmdlineSean Dewar2023-04-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: After neovim/neovim@846a056, only the ruler for current floating or last window without a statusline is drawn in the cmdline. This means that if the current window is not one of these, but has no statusline, its ruler will not be drawn anymore. Solution: Make `showmode()` draw the ruler of the current window or the last window in the cmdline if it has no statusline. This also maintains the previously restored floating window case (`float->w_status_height` should be 0). This behaviour should again match Vim, but without the overdraw it seems to do to achieve the same effect; it calls `showmode()` to draw the ruler for the last window without a statusline, then may draw over it in `showruler()` (which is now `show_cursor_info_later()` in Nvim) to show the ruler for the current window..? It's very confusing. Also update the logic in `win_redr_ruler()` to mirror the check done in `showmode()`, so that the ruler doesn't potentially draw over the long ins-completion mode message in some cases.
| * vim-patch:9.0.1461: ruler not drawn correctly when using 'rulerformat'Sean Dewar2023-04-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Ruler not drawn correctly when using 'rulerformat'. Solution: Adjust formatting depending on whether the ruler is drawn in the statusline or the command line. (Sean Dewar, closes vim/vim#12246) https://github.com/vim/vim/commit/fc8a601c3251c0388a88c1235b18c529385f7196 This issue was made apparent after neovim/neovim@0f1e2b6, as `showmode()` calls `win_redr_ruler()` with `curwin` now if it's floating, rather than the last window if there's no statusline (which usually already shares its right side with that of the editor). Co-authored-by: Sean Dewar <seandewar@users.noreply.github.com>
* | vim-patch:9.0.0864: crash when using "!!" without a previous shell commandzeertzjq2023-04-18
| | | | | | | | | | | | | | | | | | Problem: Crash when using "!!" without a previous shell command. Solution: Check "prevcmd" is not NULL. (closes vim/vim#11487) https://github.com/vim/vim/commit/6600447c7b0a1be3a64d07a318bacdfaae0cac4b Co-authored-by: Bram Moolenaar <Bram@vim.org>
* | vim-patch:9.0.0815zeertzjq2023-04-18
| | | | | | | | | | | | https://github.com/vim/vim/commit/9c50eeb40117413bf59a9da904c8d0921ed0a6e6 Co-authored-by: Martin Tournoij <martin@arp242.net>
* | vim-patch:9.0.0783: ":!" doesn't do anything but does update the previous ↵zeertzjq2023-04-18
| | | | | | | | | | | | | | | | | | | | | | | | command Problem: ":!" doesn't do anything but does update the previous command. Solution: Do not have ":!" change the previous command. (Martin Tournoij, closes vim/vim#11372) https://github.com/vim/vim/commit/8107a2a8af80a53a61734b600539c5beb4782991 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* | fix(mouse): cmdline click registered as statuscolumn (#23163)luukvbaal2023-04-18
| |
* | feat(lua): add vim.iter (#23029)Gregory Anders2023-04-17
| | | | | | | | | | vim.iter wraps a table or iterator function into an `Iter` object with methods such as `filter`, `map`, and `fold` which can be chained to produce iterator pipelines that do not create new tables at each step.
* | fix(watchfiles): skip Created events when poll starts (#23139)Jon Huhn2023-04-17
|/
* vim-patch:9.0.1460: insufficient testing for getcmdcompltype() (#23159)zeertzjq2023-04-17
| | | | | | Problem: Insufficient testing for getcmdcompltype(). Solution: Add a few more test cases. (closes vim/vim#12268) https://github.com/vim/vim/commit/961b2e54bdbe1c06e4bf8ccf7a7e3deb129b45de
* feat(diagnostic): specify diagnostic virtual text prefix as a functionIsak Samsten2023-04-17
| | | | - vim.diagnostic.config() now accepts a function for the virtual_text.prefix option, which allows for rendering e.g., diagnostic severities differently.
* fix(excmd): make :def unknown rather than unimplemented (#23150)zeertzjq2023-04-17
|
* vim-patch:9.0.0419: the :defer command does not check the function argumentszeertzjq2023-04-17
| | | | | | | | | | | | | Problem: The :defer command does not check the function argument count and types. Solution: Check the function arguments when adding a deferred function. https://github.com/vim/vim/commit/169003289fb4b2ad18fd7f5807e0d05efff0be85 Cherry-pick check_internal_func() from Vim, but use EvalFuncDef pointer as first argument. Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:9.0.0406: deferred functions not invoked when partial func exitszeertzjq2023-04-17
| | | | | | | | | | | | Problem: Deferred functions not invoked when partial func exits. Solution: Create a funccall_T when calling a :def function. https://github.com/vim/vim/commit/9667b2c888351b04751bdb43cba0d4ffc8c13ab1 The remove_funccal() function is currently unused, but it will be used in patch 9.0.0618. Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:9.0.1143: invalid memory access with bad 'statusline' value (#23133)zeertzjq2023-04-16
| | | | | | | | Problem: Invalid memory access with bad 'statusline' value. Solution: Avoid going over the NUL at the end. https://github.com/vim/vim/commit/7b17eb4b063a234376c1ec909ee293e42cff290c Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:9.0.1145: invalid memory access with recursive substitute ↵zeertzjq2023-04-16
| | | | | | | | | | expression (#23132) Problem: Invalid memory access with recursive substitute expression. Solution: Check the return value of vim_regsub(). https://github.com/vim/vim/commit/3ac1d97a1d9353490493d30088256360435f7731 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:8.2.2857: Vim9: exception in ISN_INSTR caught at wrong level (#23131)zeertzjq2023-04-16
| | | | | | | | Problem: Vim9: exception in ISN_INSTR caught at wrong level. Solution: Set the starting trylevel in exec_instructions(). (closes vim/vim#8214) https://github.com/vim/vim/commit/ff65288aa89dcd50760ad942d58baff70c6e93e6 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* fix(lua): inspect_pos respect bufnr when get syntax info (#23098)Raphael2023-04-16
|
* test(old): sync test_filetype.vim with upstream (#23127)zeertzjq2023-04-16
|
* vim-patch:9.0.0947: invalid memory access in substitute with function (#23126)zeertzjq2023-04-16
| | | | | | | | | Problem: Invalid memory access in substitute with function that goes to another file. Solution: Check for text locked in CTRL-W gf. https://github.com/vim/vim/commit/cc762a48d42b579fb7bdec2c614636b830342dd5 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:9.0.0621: filetype test leaves file behind (#23125)zeertzjq2023-04-16
| | | | | | | | | Problem: Filetype test leaves file behind. Solution: Add deferred delete flag to writefile(). (Dominique Pellé, closes vim/vim#11249) https://github.com/vim/vim/commit/fc06cda8379031890ee8852cdca61eb8af8e1ba2 Co-authored-by: Dominique Pelle <dominique.pelle@gmail.com>
* vim-patch:9.0.1455: C++ 20 modules are not recognized (#23124)Christian Clason2023-04-16
| | | | | | | | | Problem: C++ 20 modules are not recognized. Solution: Add patterns to recognize C++ 20 modules as "cpp". (Ben Jackson, closes vim/vim#12261) https://github.com/vim/vim/commit/732d69e1918b28ad0fe16eb9bc5a776c7958122b Co-authored-by: Ben Jackson <puremourning@gmail.com>
* vim-patch:9.0.1456: shortmess test depends on order of test executionzeertzjq2023-04-16
| | | | | | | Problem: Shortmess test depends on order of test execution. Solution: Clear messages. (closes vim/vim#12264) https://github.com/vim/vim/commit/657b31fa3bda2089fef18c30fc706abe5d57e865
* vim-patch:9.0.1064: code for making 'shortmess' temporarily empty is repeatedzeertzjq2023-04-16
| | | | | | | | | | Problem: Code for making 'shortmess' temporarily empty is repeated. Solution: Add functions for making 'shortmess' empty and restoring it. (Christian Brabandt, closes vim/vim#11709) https://github.com/vim/vim/commit/9aee8ec400fe617f6d82441c46a22d0cef6fa3e6 Co-authored-by: Christian Brabandt <cb@256bit.org>
* test(unit): add test for os_mkdir_recurse "created"zeertzjq2023-04-16
|
* vim-patch:9.0.0411: only created files can be cleaned up with one callzeertzjq2023-04-16
| | | | | | | | | | | | | | | | | | | | | | Problem: Only created files can be cleaned up with one call. Solution: Add flags to mkdir() to delete with a deferred function. Expand the writefile() name to a full path to handle changing directory. https://github.com/vim/vim/commit/6f14da15ac900589f2f413d77898b9bff3b31ece vim-patch:8.2.3742: dec mouse test fails without gnome terminfo entry Problem: Dec mouse test fails without gnome terminfo entry. Solution: Check if there is a gnome entry. Also fix 'acd' test on MS-Windows. (Dominique Pellé, closes vim/vim#9282) https://github.com/vim/vim/commit/f589fd3e1047cdf90566b68aaf9a13389e54d26a Cherry-pick test_autochdir.vim changes from patch 9.0.0313. Cherry-pick test_autocmd.vim changes from patch 9.0.0323. Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:9.0.0397: :defer not tested with exceptions and ":qa!"zeertzjq2023-04-16
| | | | | | | | | | Problem: :defer not tested with exceptions and ":qa!". Solution: Test :defer works when exceptions are thrown and when ":qa!" is used. Invoke the deferred calls on exit. https://github.com/vim/vim/commit/58779858fb5a82a3233af5d4237a3cece88c10d4 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:9.0.0390: cannot use a partial with :deferzeertzjq2023-04-16
| | | | | | | | | | Problem: Cannot use a partial with :defer. Solution: Add the partial arguments before the other arguments. Disallow using a dictionary. https://github.com/vim/vim/commit/86d87256c4005c6215da5af2597fbf6f6304421f Co-authored-by: Bram Moolenaar <Bram@vim.org>