aboutsummaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAge
...
* 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>
* vim-patch:9.0.1766: Runtime: Missing QML supportChristian Clason2023-08-21
| | | | | | | | | | | Problem: Runtime: Missing QML support Solution: Add QML support to Vim closes: vim/vim#12810 https://github.com/vim/vim/commit/bedc69f9d67b117ab05aa735c701cd3899d1ae2d Co-authored-by: ChaseKnowlden <haroldknowlden@gmail.com>
* vim-patch:9.0.1772: Cursor may be adjusted in 'splitkeep'ed windows (#24811)zeertzjq2023-08-21
| | | | | | | | | | | | Problem: Cursor is adjusted in window that did not change in size by 'splitkeep'. Solution: Only check that cursor position is valid in a window that has changed in size. closes: vim/vim#12509 https://github.com/vim/vim/commit/16af913eeefb288ce968fb87e09a597413861900 Co-authored-by: Luuk van Baal <luukvbaal@gmail.com>
* vim-patch:9.0.1774: no support for custom cmdline completion (#24808)zeertzjq2023-08-21
| | | | | | | | | | | | | | | Problem: no support for custom cmdline completion Solution: Add new vimscript functions Add the following two functions: - getcmdcompltype() returns custom and customlist functions - getcompletion() supports both custom and customlist closes: vim/vim#12228 https://github.com/vim/vim/commit/92997dda789ad8061841128cbc99b15ec0374411 Co-authored-by: Shougo Matsushita <Shougo.Matsu@gmail.com>
* vim-patch:9.0.1763: crash when passing invalid buffer to undotree() (#24807)zeertzjq2023-08-21
| | | | | | | | | Problem: crash when passing invalid buffer to undotree() Solution: Use get_buf_arg() instead of tv_get_buf_from_arg(). closes: vim/vim#12862 closes: vim/vim#12830 https://github.com/vim/vim/commit/ab9f2ecfd4ecaf74eeed0e5ec41355589af3ec8f
* vim-patch:9.0.1759: Visual highlight not working with cursor at end of ↵zeertzjq2023-08-21
| | | | | | | | | | | screen line (#24806) Problem: Visual highlight not working with cursor at end of screen line and 'showbreak'. Solution: Only update "vcol_prev" when drawing buffer text. closes: vim/vim#12865 https://github.com/vim/vim/commit/8fc6a1dae07aa63faa6bfe6ed93888635745830c
* vim-patch:9.0.1761: g<kEnd> behaves different from g<end>zeertzjq2023-08-21
| | | | | | | | | Problem: g<kEnd> behaves different from g<end> Solution: Make g<kEnd> behave like g<End> closes: vim/vim#12861 https://github.com/vim/vim/commit/654bdbbd329e7267051cc2eb496bc52b66053081
* vim-patch:9.0.1753: can't move to last non-blank charzeertzjq2023-08-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: can't move to last non-blank char Solution: Make g<end> behave like that Make it possible to move to last non-blank char on a line We can distinguish between g0 and g^ to move to the very first character and the first non-blank char. And while we can move to the last screen char, we cannot go to the last non-blank screen char. Since I think g$ is the more widely used and known movement command (and g<end> is synonymous to it) change the behaviour of g<end> to move to last non-screen char instead and don't have this be the same command as the g$ command anymore. If you want to keep the old behaviour, you can use: ``` nnoremap g<end> g$ ``` Add a test to verify the behaviour. closes: vim/vim#12593 https://github.com/vim/vim/commit/b5f6fe9ca2661d06bc0be839447ce1995450b9de Co-authored-by: Christian Brabandt <cb@256bit.org>
* vim-patch:9.0.1745: Missing test coverage for blockwise Visual highlight ↵zeertzjq2023-08-19
| | | | | | | | | | | (#24790) Problem: Missing test coverage for blockwise Visual highlight with virtual that starts with a double-width char. Solution: Add a new virtual text to the test. Some other small fixes. closes: vim/vim#12835 https://github.com/vim/vim/commit/fc3058495d3ff58c8f2b9dd4452d0840f2d1fa42
* vim-patch:9.0.1742: wrong curswant when clicking on second cell of ↵zeertzjq2023-08-19
| | | | | | | | | | | double-width char (#24789) Problem: Wrong curswant when clicking and the second cell of a double-width char. Solution: Don't copy virtcol of the first char to the second one. closes: vim/vim#12842 https://github.com/vim/vim/commit/9994160bfe74501886bbbf5631aec8ea2ae05991
* vim-patch:9.0.1540: reverse() on string doesn't work in compiled functionzeertzjq2023-08-19
| | | | | | | | | | Problem: reverse() on string doesn't work in compiled function. Solution: Accept string in argument type check. (Yegappan Lakshmanan, closes vim/vim#12377) https://github.com/vim/vim/commit/f9dc278946d52235a0025fd347bd9ff571258470 Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
* vim-patch:9.0.1515: reverse() does not work for a Stringzeertzjq2023-08-19
| | | | | | | | | | | | | | | | | | | Problem: reverse() does not work for a String. Solution: Implement reverse() for a String. (Yegappan Lakshmanan, closes vim/vim#12179) https://github.com/vim/vim/commit/03ff1c2dde7f15eca5c9baa6dafbda9b49bedc3b vim-patch:9.0.1738: Duplicate code to reverse a string Problem: Duplicate code to reverse a string Solution: Move reverse_text() to strings.c and remove string_reverse(). closes: vim/vim#12847 https://github.com/vim/vim/commit/4dd266cb66d901cf5324f09405cfea3f004bd29f Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
* fix(extmarks): make empty "conceal" respect &conceallevel = 1 (#24785)zeertzjq2023-08-19
| | | This treats extmark conceal more like matchadd() conceal.
* test(ui/mouse_spec): mouse click with matchadd() concealed textzeertzjq2023-08-18
|
* vim-patch:9.0.1725: cursor pos wrong after concealed text with 'virtualedit'zeertzjq2023-08-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Wrong cursor position when clicking after concealed text with 'virtualedit'. Solution: Store virtual columns in ScreenCols[] instead of text columns, and always use coladvance() when clicking. This also fixes incorrect curswant when clicking on a TAB, so now Test_normal_click_on_ctrl_char() asserts the same results as the ones before patch 9.0.0048. closes: vim/vim#12808 https://github.com/vim/vim/commit/e500ae8e29ad921378085f5d70ee5c0c537be1ba Remove the mouse_adjust_click() function. There is a difference in behavior with the old mouse_adjust_click() approach: when clicking on the character immediately after concealed text that is completely hidden, cursor is put on the clicked character rather than at the start of the concealed text. The new behavior is better, but it causes unnecessary scrolling in a functional test (which is an existing issue unrelated to these patches), so adjust the test. Now fully merged: vim-patch:9.0.0177: cursor position wrong with 'virtualedit' and mouse click
* vim-patch:9.0.1705: cursor position wrong when clicking on an unprintable charzeertzjq2023-08-18
| | | | | | | | | | | Problem: cursor position wrong when clicking on an unprintable char Solution: Don't update prev_ptr when wlv.n_extra is not zero. closes: vim/vim#12664 https://github.com/vim/vim/commit/b25dbb3f9b5885dd623af7a9fae890b8366b64e2 Tests only. Code superseded by patch 9.0.1725.
* vim-patch:9.0.0048: cursor in wrong column with mouse click after concealed textzeertzjq2023-08-18
| | | | | | | | | | | Problem: Cursor in wrong column with mouse click after concealed text. Solution: Store the text column when drawing text. https://github.com/vim/vim/commit/b90818867c089d4987f1a48ee3666674826d6f4b Tests only. Code changes moved to the port of patch 9.0.1725. Co-authored-by: Bram Moolenaar <Bram@vim.org>