summaryrefslogtreecommitdiff
path: root/src/testdir/test_autocmd.vim
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.2.2596: :doautocmd may confuse scripts listening to WinEnterv8.2.2596Bram Moolenaar2021-03-131-1/+9
| | | | | Problem: :doautocmd may confuse scripts listening to WinEnter. Solution: Do the current buffer last. (closes #7958)
* patch 8.2.2477: autocommand tests hang on MS-Windowsv8.2.2477Bram Moolenaar2021-02-071-1/+7
| | | | | Problem: Autocommand tests hang on MS-Windows. Solution: Skip a couple of tests. Fix file name.
* patch 8.2.2476: using freed memory when splitting window while closing bufferv8.2.2476Bram Moolenaar2021-02-071-6/+3
| | | | | | Problem: Using freed memory when using an autocommand to split a window while a buffer is being closed. Solution: Disallow splitting when the buffer has b_locked_split set.
* patch 8.2.2475: autocommand tests hangs on MS-Windowsv8.2.2475Bram Moolenaar2021-02-061-0/+3
| | | | | Problem: Autocommand tests hangs on MS-Windows. Solution: Skip one test.
* patch 8.2.2474: using freed memory when window is closed by autocommandv8.2.2474Bram Moolenaar2021-02-061-0/+14
| | | | | | Problem: Using freed memory when window is closed by autocommand. (houyunsong) Solution: Check the window pointer is still valid.
* patch 8.2.2473: crash when leaving command line window triggers autocommandv8.2.2473Bram Moolenaar2021-02-061-0/+9
| | | | | | Problem: Crash when leaving command line window triggers autocommand. (houyunsong) Solution: Make sure not to close the current window or buffer.
* patch 8.2.2472: crash when using command line window in an autocommandv8.2.2472Bram Moolenaar2021-02-061-2/+17
| | | | | | Problem: Crash when using command line window in an autocommand. (houyunsong) Solution: Save and restore au_new_curbuf.
* patch 8.2.2465: using freed memory in :psearchv8.2.2465Bram Moolenaar2021-02-031-3/+25
| | | | | Problem: Using freed memory in :psearch. (houyunsong) Solution: Check the current window is still valid. Fix flaky test.
* patch 8.2.2464: using freed memory if window closed in autocommandv8.2.2464Bram Moolenaar2021-02-031-0/+11
| | | | | Problem: Using freed memory if window closed in autocommand. (houyunsong) Solution: Check the window still exists.
* patch 8.2.2463: using :arglocal in an autocommand may use freed memoryv8.2.2463Bram Moolenaar2021-02-031-0/+9
| | | | | | Problem: Using :arglocal in an autocommand may use freed memory. (houyunsong) Solution: Check if the arglist is locked.
* patch 8.2.2421: double free when using autocommand with "argdel"v8.2.2421Bram Moolenaar2021-01-281-0/+6
| | | | | Problem: Double free when using autocommand with "argdel". (Houyunsong) Solution: Add the arglist_locked flag.
* patch 8.2.2420: too many problems with using all autocommand eventsv8.2.2420Bram Moolenaar2021-01-281-14/+3
| | | | | Problem: Too many problems with using all autocommand events. Solution: Disallow defining an autocommand for all events.
* patch 8.2.2419: autocmd test was failing on MS-Windows with GUIv8.2.2419Bram Moolenaar2021-01-281-9/+0
| | | | | Problem: Autocmd test was failing on MS-Windows with GUI. Solution: Remove stray feedkeys().
* patch 8.2.2415: no way to check for the cmdwin featurev8.2.2415Bram Moolenaar2021-01-261-4/+2
| | | | | | | Problem: No way to check for the cmdwin feature, cmdline_hist is now always enabled. Solution: Add has('cmdwin') support. Skip arglist test on Windows temporarily.
* patch 8.2.2359: strange test failure with MS-Windowsv8.2.2359Bram Moolenaar2021-01-161-0/+8
| | | | | Problem: Strange test failure with MS-Windows. Solution: Skip the system() call for now.
* patch 8.2.2355: stray test failure on Appveyorv8.2.2355Bram Moolenaar2021-01-151-3/+3
| | | | | Problem: Stray test failure on Appveyor. Solution: Finish insert command.
* patch 8.2.2354: crash with a weird combination of autocommandsv8.2.2354Bram Moolenaar2021-01-151-0/+20
| | | | | Problem: Crash with a weird combination of autocommands. Solution: Increment b_nwindows when needed. (closes #7674)
* patch 8.2.2185: BufUnload is not triggered for the quickfix dummy bufferv8.2.2185Bram Moolenaar2020-12-221-84/+107
| | | | | | Problem: BufUnload is not triggered for the quickfix dummy buffer. Solution: Do trigger BufUnload. (Pontus Leitzler,closes #7518, closes #7517) Fix white space around "=".
* patch 8.2.2160: various typosv8.2.2160Bram Moolenaar2020-12-181-1/+1
| | | | | Problem: Various typos. Solution: Fix spelling mistakes. (closes #7494)
* patch 8.2.2060: check for features implemented with "if"v8.2.2060Bram Moolenaar2020-11-271-3/+1
| | | | | Problem: Check for features implemented with "if". Solution: Use the Check commands. (Ken Takata, closes #7383)
* patch 8.2.2057: getting the selection may trigger TextYankPost autocmdv8.2.2057Bram Moolenaar2020-11-261-0/+22
| | | | | | Problem: Getting the selection may trigger TextYankPost autocmd. Solution: Only trigger the autocommand when yanking in Vim, not for getting the selection. (closes #7367)
* patch 8.2.2046: some test failures don't give a clear errorv8.2.2046Bram Moolenaar2020-11-251-7/+7
| | | | | | Problem: Some test failures don't give a clear error. Solution: Use assert_match() and assert_fails() instead of assert_true(). (Ken Takata, closes #7368)
* patch 8.2.1919: assert_fails() setting emsg_silent changes normal executionv8.2.1919Bram Moolenaar2020-10-281-2/+2
| | | | | Problem: Assert_fails() setting emsg_silent changes normal execution. Solution: Use a separate flag in_assert_fails.
* patch 8.2.1836: autocmd test fails on pacifist systemsv8.2.1836Bram Moolenaar2020-10-111-3/+8
| | | | | | Problem: Autocmd test fails on pacifist systems. Solution: Check that /bin/kill exists. (James McCoy, closes #7117) Tune the timing, make the autocmd test run faster.
* patch 8.2.1736: failure to compile a pattern not tested muchv8.2.1736Bram Moolenaar2020-09-231-0/+1
| | | | | | Problem: Failure to compile a pattern not tested much. Solution: Add tests where a pattern fails to compile. (Yegappan Lakshmanan, closes #7004)
* patch 8.2.1593: tests do not check the error number properlyv8.2.1593Bram Moolenaar2020-09-041-11/+11
| | | | | Problem: Tests do not check the error number properly.0 Solution: Add a colon after the error number. (closes #6869)
* patch 8.2.1497: CursorHold test is flakyv8.2.1497Bram Moolenaar2020-08-201-6/+5
| | | | | Problem: CursorHold test is flaky. (Jakub Kądziołka) Solution: Use WaitForAssert() (closes #6754)
* patch 8.2.1432: various inconsistencies in test filesv8.2.1432Bram Moolenaar2020-08-121-18/+10
| | | | | | | Problem: Various inconsistencies in test files. Solution: Add modelines where they were missing. Use Check commands instead of silently skipping over tests. Adjust indents and comments. (Ken Takata, closes #6695)
* patch 8.2.1369: MS-Windows: autocommand test sometimes failsv8.2.1369Bram Moolenaar2020-08-051-1/+1
| | | | | Problem: MS-Windows: autocommand test sometimes fails. Solution: Do not rely on the cat command.
* patch 8.2.1260: there is no good test for CursorHoldv8.2.1260Bram Moolenaar2020-07-211-0/+29
| | | | | | Problem: There is no good test for CursorHold. Solution: Add a test. Remove duplicated test. (Yegappan Lakshmanan, closes #6503
* patch 8.2.1183: assert_fails() checks the last error messagev8.2.1183Bram Moolenaar2020-07-111-8/+4
| | | | | | Problem: assert_fails() checks the last error message. Solution: Check the first error, it is more relevant. Fix all the tests that rely on the old behavior.
* patch 8.2.1059: crash when using :tabonly in an autocommandv8.2.1059Bram Moolenaar2020-06-261-1/+21
| | | | | Problem: Crash when using :tabonly in an autocommand. (Yegappan Lakshmanan) Solution: Do not allow the autocommand window to be closed.
* patch 8.2.1053: insufficient testing for 'statusline' and 'tabline'v8.2.1053Bram Moolenaar2020-06-251-3/+22
| | | | | Problem: Insufficient testing for 'statusline' and 'tabline'. Solution: Add more tests. (Yegappan Lakshmanan, closes #6333)
* patch 8.2.0996: using "aucmdwin" in win_gettype() is not idealv8.2.0996Bram Moolenaar2020-06-171-1/+1
| | | | | Problem: Using "aucmdwin" in win_gettype() is not ideal. Solution: Rename to "autocmd".
* patch 8.2.0991: cannot get window type for autocmd and preview windowv8.2.0991Bram Moolenaar2020-06-161-0/+22
| | | | | Problem: Cannot get window type for autocmd and preview window. Solution: Add types to win_gettype(). (Yegappan Lakshmanan, closes #6277)
* patch 8.2.0982: insufficient testing for reading/writing filesv8.2.0982Bram Moolenaar2020-06-151-0/+53
| | | | | | Problem: Insufficient testing for reading/writing files. Solution: Add more tests. (Yegappan Lakshmanan, closes #6257) Add "ui_delay" to test_override() and use it for the CTRL-O test.
* patch 8.2.0964: TextYankPost does not provide info about Visual selectionv8.2.0964Bram Moolenaar2020-06-121-5/+9
| | | | | Problem: TextYankPost does not provide info about Visual selection. Solution: Add the 'visual' key in v:event. (closes #6249)
* patch 8.2.0952: no simple way to interrupt Vimv8.2.0952Bram Moolenaar2020-06-101-0/+13
| | | | | | Problem: No simple way to interrupt Vim. Solution: Add the SigUSR1 autocommand, triggered by SIGUSR1. (Jacob Hayes, closes #1718)
* patch 8.2.0615: regexp benchmark stest is old stylev8.2.0615Bram Moolenaar2020-04-211-0/+2
| | | | | | Problem: Regexp benchmark stest is old style. Solution: Make it a new style test. Fix using a NULL list. Add more tests. (Yegappan Lakshmanan, closes #5963)
* patch 8.2.0533: tests using term_wait() can still be flakyv8.2.0533Bram Moolenaar2020-04-081-5/+5
| | | | | | | Problem: Tests using term_wait() can still be flaky. Solution: Increase the wait time when rerunning a test. (James McCoy, closes #5899) Halve the initial times to make tests run faster when there is no rerun.
* patch 8.2.0522: several errors are not tested forv8.2.0522Bram Moolenaar2020-04-061-0/+24
| | | | | Problem: Several errors are not tested for. Solution: Add tests. (Yegappan Lakshmanan, closes #5892)
* patch 8.2.0474: cannot use :write when using a plugin with BufWriteCmdv8.2.0474Bram Moolenaar2020-03-291-0/+34
| | | | | Problem: Cannot use :write when using a plugin with BufWriteCmd. Solution: Reset BF_NOTEDITED after BufWriteCmd. (closes #5807)
* patch 8.2.0432: a few tests fail in a huge terminalv8.2.0432Bram Moolenaar2020-03-231-3/+3
| | | | | Problem: A few tests fail in a huge terminal. Solution: Make the tests pass. (Dominique Pelle, closes #5829)
* patch 8.2.0406: FileReadCmd event not well testedv8.2.0406Bram Moolenaar2020-03-191-0/+41
| | | | | Problem: FileReadCmd event not well tested. Solution: Add a test.
* patch 8.2.0402: setting local instead of global flagv8.2.0402Bram Moolenaar2020-03-181-1/+1
| | | | | Problem: Setting local instead of global flag. Solution: Prepend "g:" to "test_is_flaky".
* patch 8.2.0400: not all tests using a terminal are in the list of flaky testsv8.2.0400Bram Moolenaar2020-03-181-0/+2
| | | | | Problem: Not all tests using a terminal are in the list of flaky tests. Solution: Introduce the test_is_flaky flag.
* patch 8.2.0382: some tests fail when run under valgrindv8.2.0382Bram Moolenaar2020-03-151-1/+1
| | | | | Problem: Some tests fail when run under valgrind. Solution: Increase timeouts.
* patch 8.2.0310: autocmd test fails on a slow systemv8.2.0310Bram Moolenaar2020-02-231-5/+7
| | | | | Problem: Autocmd test fails on a slow system. Solution: Adjust the expectations. (James McCoy, closes #5685)
* patch 8.2.0303: TermChanged test fails in the GUIv8.2.0303Bram Moolenaar2020-02-221-0/+2
| | | | | Problem: TermChanged test fails in the GUI. Solution: Skip the test when running the GUI.
* patch 8.2.0302: setting 'term' may cause error in TermChanged autocommandv8.2.0302Bram Moolenaar2020-02-221-0/+20
| | | | | | Problem: Setting 'term' may cause error in TermChanged autocommand. Solution: Use aucmd_prepbuf() to switch to the buffer where the autocommand is to be executed. (closes #5682)