aboutsummaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAge
...
* feat(float): implement footerEvgeni Chasnovski2023-08-26
| | | | | | | | Problem: Now way to show text at the bottom part of floating window border (a.k.a. "footer"). Solution: Allows `footer` and `footer_pos` config fields similar to `title` and `title_pos`.
* fix(statuscolumn): force full redraw when signcolumn is invalid (#24859)luukvbaal2023-08-26
| | | Fix #24655
* fix(extmarks): wrong display when changing text with virt_lines (#24879)Ibby2023-08-26
|
* refactor(change): do API changes to buffer without curbuf switchbfredl2023-08-26
| | | | | | | | | | | | | | | | | | | | | | | Most of the messy things when changing a non-current buffer is not about the buffer, it is about windows. In particular, it is about `curwin`. When editing a non-current buffer which is displayed in some other window in the current tabpage, one such window will be "borrowed" as the curwin. But this means if two or more non-current windows displayed the buffers, one of them will be treated differenty. this is not desirable. In particular, with nvim_buf_set_text, cursor _column_ position was only corrected for one single window. Two new tests are added: the test with just one non-current window passes, but the one with two didn't. Two corresponding such tests were also added for nvim_buf_set_lines. This already worked correctly on master, but make sure this is well-tested for future refactors. Also, nvim_create_buf no longer invokes autocmds just because you happened to use `scratch=true`. No option value was changed, therefore OptionSet must not be fired.
* fix(ui): wrong display with 0-width inline virt_text at eol (#24854)zeertzjq2023-08-24
|
* feat(treesitter): add 'injection.self' and 'injection.parent'Amaan Qureshi2023-08-24
| | | | Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
* vim-patch:9.0.1785: wrong cursor position with 'showbreak' and lcs-eol (#24852)zeertzjq2023-08-24
| | | | | | | | | | Problem: wrong cursor position with 'showbreak' and lcs-eol Solution: Add size of 'showbreak' before when 'listchars' "eol" is used. Also fix wrong cursor position with wrapping virtual text on empty line and 'showbreak'. closes: vim/vim#12891 https://github.com/vim/vim/commit/1193951bebcff50d88403ce17dec5d3be14f131d
* vim-patch:9.0.1773: cannot distinguish Forth and Fortran *.f files (#24841)zeertzjq2023-08-23
| | | | | | | | | | | | | | | | Problem: cannot distinguish Forth and Fortran *.f files Solution: Add Filetype detection Code Also add *.4th as a Forth filetype closes: vim/vim#12251 https://github.com/vim/vim/commit/19a3bc3addf9b4aa8150a01b11b4249c67d15d3b Don't remove filetype files from Vim patches: - filetype.vim, script.vim, ft.vim usually contain useful changes - script.vim and ft.vim don't even have their paths spelled correctly Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:9.0.1781: Problems when setting bin/paste optionzeertzjq2023-08-23
| | | | | | | | | | | | | | | | | | | | Problem: Problems when setting bin/paste option Solution: When setting binary/paste, remember that this also affects depending options, so that :verbose set returns the right location. Mention if depending options for 'binary' or 'paste' have been reset indirectly. Add a test to verify it works. Also noticed as small bug, that the global option value for expandtab was not reset when paste option is set, so fix that while at it. closes: vim/vim#12837 closes: vim/vim#12879 https://github.com/vim/vim/commit/757593c07a4f4ac43eb6c6e52fc299abc9bc08bc Co-authored-by: Christian Brabandt <cb@256bit.org>
* vim-patch:9.0.1710: scrolloff options work slightly differentzeertzjq2023-08-23
| | | | | | | | | | | | | | | | | | | | | | | Problem: sidescrolloff and scrolloff options work slightly different than other global-local options Solution: Make it behave consistent for all global-local options It was noticed, that sidescrolloff and scrolloff options behave differently in comparison to other global-local window options like 'listchars' So make those two behave like other global-local options. Also add some extra documentation for a few special local-window options. Add a few tests to make sure all global-local window options behave similar closes: vim/vim#12956 closes: vim/vim#12643 https://github.com/vim/vim/commit/4a8eb6e7a9df10f79bf95301ced012f0d6a13088 Co-authored-by: Christian Brabandt <cb@256bit.org>
* fix(plines): count 'showbreak' for virtual text at eolzeertzjq2023-08-23
|
* vim-patch:9.0.1783: Display issues with virt text smoothscroll and showbreakzeertzjq2023-08-23
| | | | | | | | | | | Problem: Wrong display with wrapping virtual text or unprintable chars, 'showbreak' and 'smoothscroll'. Solution: Don't skip cells taken by 'showbreak' in screen lines before "w_skipcol". Combined "n_skip" and "skip_cells". closes: vim/vim#12597 https://github.com/vim/vim/commit/b557f4898208105b674df605403cac1b1292707b
* vim-patch:9.0.1779: Need more state() tests (#24840)zeertzjq2023-08-23
| | | | | | | | | Problem: Need more state() tests Solution: Add a few more tests for operater pending mode and register yank command closes: vim/vim#12883 https://github.com/vim/vim/commit/8dabccd295271104ad5af0abc48e283d644cff59
* test: fix state() test flakiness (#24839)zeertzjq2023-08-23
|
* vim-patch:9.0.0579: using freed memory when 'tagfunc' wipes out buffer (#24838)zeertzjq2023-08-22
| | | | | | | | | | | Problem: Using freed memory when 'tagfunc' wipes out buffer that holds 'complete'. Solution: Make a copy of the option. Make sure cursor position is valid. https://github.com/vim/vim/commit/0ff01835a40f549c5c4a550502f62a2ac9ac447c Cherry-pick a cmdwin change from patch 9.0.0500. Co-authored-by: Bram Moolenaar <Bram@vim.org>
* test(old): reorder test_edit.vim to match upstream (#24837)zeertzjq2023-08-22
|
* vim-patch:8.0.0571: negative line number when using :z^ in an empty buffer ↵zeertzjq2023-08-22
| | | | | | | | | | | (#24836) Problem: The cursor line number becomes negative when using :z^ in an empty buffer. (neovim vim/vim#6557) Solution: Correct the line number. Also reset the column. https://github.com/vim/vim/commit/a364cdb648ae009fa7aa05382f5659335683d349 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* test(old): remove workaround for TSAN CI (#24834)zeertzjq2023-08-22
| | | Now that TSAN CI no longer runs oldtests, match upstream better.
* vim-patch:8.2.4611: typos in tests; one lua line not covered by test (#24835)zeertzjq2023-08-22
| | | | | | | | | | | | | Problem: Typos in tests; one lua line not covered by test. Solution: Fix typos. Add test case. (Dominique Pellé, closes vim/vim#9994) https://github.com/vim/vim/commit/81b573d7e55bd48988f298ce8e652d902e9bdeba Cherry-pick test_menu.vim change from patch 9.0.1453. N/A patch: vim-patch:8.2.3045: minor typos Co-authored-by: Dominique Pelle <dominique.pelle@gmail.com>
* vim-patch:9.0.0837: append() reports failure when not appending anythingzeertzjq2023-08-22
| | | | | | | | | Problem: append() reports failure when not appending anything. Solution: Only report failure when appending something. (closes vim/vim#11498) https://github.com/vim/vim/commit/cd9c8d400c1eb9cbb4ff6a33be02f91a30ab13b2 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:9.0.0428: autocmd test uses common file namezeertzjq2023-08-22
| | | | | | | | | Problem: Autocmd test uses common file name. Solution: Use unique name to reduce flakiness. https://github.com/vim/vim/commit/be9fc5b60cbdf697c4f6d12345dd7fcdb5d6ca01 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:9.0.0425: autocmd test is a bit flaky on MS-Windowszeertzjq2023-08-22
| | | | | | | | | Problem: Autocmd test is a bit flaky on MS-Windows. Solution: Add a bit more sleeping. (Ken Takata, closes vim/vim#11095) https://github.com/vim/vim/commit/ae04a6049b3f0e30a671966ed2dda1979e0b5f20 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:9.0.0415: on MS-Windows some tests are flakyzeertzjq2023-08-22
| | | | | | | | | | Problem: On MS-Windows some tests are flaky. Solution: Add sleeps, disable swapfile, mark test as flaky. (Ken Takata, closes vim/vim#11082) https://github.com/vim/vim/commit/0500e87eba7b2a82392dbb5d573de19f8ff138e7 Co-authored-by: K.Takata <kentkt@csc.jp>
* vim-patch:9.0.0391: using separate delete() call instead of writefile() 'D' flagzeertzjq2023-08-22
| | | | | | | | | Problem: Using separate delete() call instead of writefile() 'D' flag. Solution: Use the writefile 'D' flag. https://github.com/vim/vim/commit/3411265a3698c3d5ef56d9b0c3bb237a9f5fdba1 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:9.0.0380: deleting files in tests is a hasslezeertzjq2023-08-22
| | | | | | | | | | | Problem: Deleting files in tests is a hassle. Solution: Use the new 'D' flag of writefile(). https://github.com/vim/vim/commit/e1f3ab73bc7c4b3eee03b673c2983ed7eca6ea80 vim-patch:e1f3ab73bc7c Co-authored-by: Bram Moolenaar <Bram@vim.org>
* fix(terminal): handle horizontal scrolling in another window (#24828)zeertzjq2023-08-21
|
* vim-patch:9.0.0423: "for" and "while" not recognized after :vim9cmd and ↵Gregory Anders2023-08-21
| | | | | | | | | | | | :legacy (#24825) Problem: "for" and "while" not recognized after :vim9cmd and :legacy. (Emanuele Torre) Solution: Recognize all the command modifiers. (closes vim/vim#11087) Add a test to check the list of modifiers. https://github.com/vim/vim/commit/9132426334a8c7e159db93ec1b08ed61ac600aae Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:9.0.0313: using common name in tests leads to flaky testszeertzjq2023-08-21
| | | | | | | | | Problem: Using common name in tests leads to flaky tests. Solution: Rename files and directories to be more specific. https://github.com/vim/vim/commit/e7cda97b6b578b33a42de0d27ac2876337c641ca Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:9.0.0077: wrong restored cursor position when switching window in ↵zeertzjq2023-08-21
| | | | | | | | | | | | autocmd Problem: When switching window in autocmd the restored cursor position may be wrong. Solution: Do not restore the cursor if it was not set. (closes vim/vim#10775) https://github.com/vim/vim/commit/b03950fafa07e8b8d975eeb345ad08b8b62e67ce Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:8.2.4212: window title test still fails in some configurationszeertzjq2023-08-21
| | | | | | | | | Problem: Window title test still fails in some configurations. Solution: Explicitly set the 'title' option. https://github.com/vim/vim/commit/1450112eef2eda211d398d6d7ac03f7a29fa4f55 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:8.2.4211: window title test still fails in some configurationszeertzjq2023-08-21
| | | | | | | | | Problem: Window title test still fails in some configurations. Solution: Use WaitForAssert(). https://github.com/vim/vim/commit/3a8ad5918b5c1b4c36b39c420ce933b452929dd8 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:8.2.4210: window title test fails in some configurationszeertzjq2023-08-21
| | | | | | | | | Problem: Window title test fails in some configurations. Solution: Only run the test if the title can be obtained. https://github.com/vim/vim/commit/a6c09a7c20dd8dae43a99c6dc634151940c2fc6c Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:8.2.4208: using setbufvar() may change the window titlezeertzjq2023-08-21
| | | | | | | | | Problem: Using setbufvar() may change the window title. Solution: Do not redraw when creating the autocommand window. (closes vim/vim#9613) https://github.com/vim/vim/commit/dff97e65eb1bb24c44c2b7430a480888d8afb3f4 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:8.2.4339: CTRL-A does not work properly with the cmdline popup menuzeertzjq2023-08-21
| | | | | | | | | | | Problem: CTRL-A does not work properly with the cmdline popup menu. Solution: Fix issues with CTRL-A. Add more tests for the cmdline popup menu. Remove TermWait() before VeriryScreenDump(). Refactor the cmdline popup code. (Yegappan Lakshmanan, closes vim/vim#9735) https://github.com/vim/vim/commit/560dff49c0095111fc96b4b8dd7f4d269aba9473 Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
* vim-patch:8.2.3518: Test_xrestore sometimes failszeertzjq2023-08-21
| | | | | | | | | | Problem: Test_xrestore sometimes fails. Solution: Mark the test as flayky. Move marking test as flaky to the test instead of listing them in runtest. https://github.com/vim/vim/commit/f08b0eb8691ff09f98bc4beef986ece1c521655f Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:8.2.2910: test for cmdline window and terminal fails on MS-Windowszeertzjq2023-08-21
| | | | | | | | | Problem: Test for cmdline window and terminal fails on MS-Windows. Solution: Skip the test on MS-Windows. https://github.com/vim/vim/commit/0b49648486c5857047433c11d0871f79b53613a5 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:8.2.2908: crash when using a terminal popup window from cmdline windowzeertzjq2023-08-21
| | | | | | | | | | Problem: Crash when using a terminal popup window from the cmdline window. Solution: Instead of checking cmdwin_type call cmdwin_is_active(). (closes vim/vim#8286) https://github.com/vim/vim/commit/e5b4486c4279a9674a9bb76130b4db53fb9303a0 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:8.2.0533: tests using term_wait() can still be flakyzeertzjq2023-08-21
| | | | | | | | | | | Problem: Tests using term_wait() can still be flaky. Solution: Increase the wait time when rerunning a test. (James McCoy, closes vim/vim#5899) Halve the initial times to make tests run faster when there is no rerun. https://github.com/vim/vim/commit/6a2c5a7dd5c9215cc030d5ea6e4616d782c091dd Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:8.2.0454: some tests fail when the system is slowzeertzjq2023-08-21
| | | | | | | | | | Problem: Some tests fail when the system is slow. Solution: Make the run number global, use in the test to increase the waiting time. (closes vim/vim#5841) https://github.com/vim/vim/commit/3ed9efc2b15b624268bcce4e4d312fb35840a12b Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:8.2.0310: autocmd test fails on a slow systemzeertzjq2023-08-21
| | | | | | | | | Problem: Autocmd test fails on a slow system. Solution: Adjust the expectations. (James McCoy, closes vim/vim#5685) https://github.com/vim/vim/commit/8fb1b47a5e24892b23c3923a07d8a850d99b14b2 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:8.2.0195: some tests fail when run in the GUIzeertzjq2023-08-21
| | | | | | | | | | Problem: Some tests fail when run in the GUI. Solution: Make sure the window width is enough. In the GUI run terminal Vim in the terminal, if possible. https://github.com/vim/vim/commit/3180fe6c6dc0728d21c6318b957022b029c234f0 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:8.2.0186: a couple of tests may fail when features are missingzeertzjq2023-08-21
| | | | | | | | | | | Problem: A couple of tests may fail when features are missing. Solution: Check for features. (Dominique Pelle, closes vim/vim#5561) https://github.com/vim/vim/commit/705724e430abd10ffdd5f1a2bb5a8f9223ff5cdd Just copy the two 'wincolor' test functions from Vim. Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:8.1.2403: autocmd test fails under valgrindzeertzjq2023-08-21
| | | | | | | | | Problem: Autocmd test fails under valgrind. Solution: Wait a bit longer. https://github.com/vim/vim/commit/3c47e8384de62dd67748454a853677e32ee7842c Co-authored-by: Bram Moolenaar <Bram@vim.org>
* test: add some tests for SafeState autocommandzeertzjq2023-08-21
|
* vim-patch:8.1.2099: state() test fails on some Mac systemszeertzjq2023-08-21
| | | | | | | | | Problem: state() test fails on some Mac systems. Solution: Increase the wait time. (closes vim/vim#4983) https://github.com/vim/vim/commit/b7a97ef340f03ca08df8c8e00cd5580f61aac824 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:8.1.2069: test for SafeStateAgain may still failzeertzjq2023-08-21
| | | | | | | | | Problem: Test for SafeStateAgain may still fail. Solution: Send another message to trigger SafeStateAgain. https://github.com/vim/vim/commit/0f6629a08a9ae482956f5e70452ae78be569eadf Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:8.1.2068: test for SafeState and SafeStateAgain may failzeertzjq2023-08-21
| | | | | | | | | Problem: Test for SafeState and SafeStateAgain may fail. Solution: Accept more possible responses https://github.com/vim/vim/commit/513537bfff59b94a26c63ab2bd458f21d4be774e Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:8.1.2067: no tests for SafeState and SafeStateAgainzeertzjq2023-08-21
| | | | | | | | | | | Problem: No tests for SafeState and SafeStateAgain. Solution: Add tests. https://github.com/vim/vim/commit/cadbe1b1fbdf7d7740ae617710e0f6862fdee598 This test is quite useless. Don't port to Lua. Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:8.1.2066: no tests for state()zeertzjq2023-08-21
| | | | | | | | | Problem: No tests for state(). Solution: Add tests. Clean up some feature checks. Make "a" flag work. https://github.com/vim/vim/commit/c2585490321854ca3df115efcf0b40986901d96c Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:9.0.1768: Runtime: no support for bicep filesChristian Clason2023-08-21
| | | | | | | | | | | Problem: Runtime: no support for bicep files Solution: Add filetype support for bicepparam closes: vim/vim#12784 https://github.com/vim/vim/commit/2d0988ef93c6e8e59381c9cd123efbc2cd1faf92 Co-authored-by: Scott McKendry <scott.c.mckendry@gmail.com>