summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_autocmd.vim
AgeCommit message (Collapse)Author
2018-04-28patch 8.0.1771: in tests, when WaitFor() fails it doesn't say whyv8.0.1771Bram Moolenaar
Problem: In tests, when WaitFor() fails it doesn't say why. (James McCoy) Solution: Add WaitForAssert(), which produces an assert error when it fails.
2018-04-22patch 8.0.1748: CmdlineEnter command uses backslash instead of slashv8.0.1748Bram Moolenaar
Problem: CmdlineEnter command uses backslash instead of slash. Solution: Don't treat the character as a file name. (closes #2837)
2018-04-17patch 8.0.1732: crash when terminal API call deletes the bufferv8.0.1732Bram Moolenaar
Problem: Crash when terminal API call deletes the buffer. Solution: Lock the buffer while calling a function. (closes #2813)
2018-03-29patch 8.0.1653: screen dump is made too soonv8.0.1653Bram Moolenaar
Problem: Screen dump is made too soon. Solution: Wait until the ruler is displayed. (Ozaki Kiichi, closes #2755)
2018-03-23patch 8.0.1633: a TextChanged autocmd triggers when it is definedv8.0.1633Bram Moolenaar
Problem: A TextChanged autocmd triggers when it is defined after creating a buffer. Solution: Set b_last_changedtick when opening a buffer. (Hirohito Highlight, closes #2742)
2018-02-10patch 8.0.1494: no autocmd triggered in Insert mode with visible popup menuv8.0.1494Bram Moolenaar
Problem: No autocmd triggered in Insert mode with visible popup menu. Solution: Add TextChangedP. (Prabir Shrestha, Christian Brabandt, closes #2372, closes #1691) Fix that the TextChanged autocommands are not always triggered when sourcing a script.
2018-02-03patch 8.0.1463: test fails without 'autochdir' optionv8.0.1463Bram Moolenaar
Problem: Test fails without 'autochdir' option. Solution: Skip test if 'autochdir' is not supported.
2018-02-03patch 8.0.1459: cannot handle change of directoryv8.0.1459Bram Moolenaar
Problem: Cannot handle change of directory. Solution: Add the DirChanged autocommand event. (Andy Massimino, closes #888) Avoid changing directory for 'autochdir' too often.
2018-01-31patch 8.0.1445: cannot act on edits in the command linev8.0.1445Bram Moolenaar
Problem: Cannot act on edits in the command line. Solution: Add the CmdlineChanged autocommand event. (xtal8, closes #2603, closes #2524)
2017-12-21patch 8.0.1420: accessing freed memory in vimgrepv8.0.1420Bram Moolenaar
Problem: Accessing freed memory in vimgrep. Solution: Check that the quickfix list is still valid. (Yegappan Lakshmanan, closes #2474)
2017-12-19patch 8.0.1413: accessing freed memory in :cbufferv8.0.1413Bram Moolenaar
Problem: Accessing freed memory in :cbuffer. Solution: Get quickfix list after executing autocmds. (closes #2470)
2017-12-18patch 8.0.1403: using freed buffer in grep commandv8.0.1403Bram Moolenaar
Problem: Using freed buffer in grep command. (gy741, Dominique Pelle) Solution: Lock the dummy buffer to avoid autocommands wiping it out.
2017-12-18patch 8.0.1402: crash with nasty autocommandv8.0.1402Bram Moolenaar
Problem: Crash with nasty autocommand. (gy741, Dominique Pelle) Solution: Check that the new current buffer isn't wiped out. (closes #2447)
2017-12-16patch 8.0.1394: cannot intercept a yank commandv8.0.1394Bram Moolenaar
Problem: Cannot intercept a yank command. Solution: Add the TextYankPost autocommand event. (Philippe Vaucher et al., closes #2333)
2017-11-05patch 8.0.1269: effect of autocommands on marks is not testedv8.0.1269Bram Moolenaar
Problem: Effect of autocommands on marks is not tested. Solution: Add a couple of tests. (James McCoy, closes #2271)
2017-11-02patch 8.0.1253: still too many old style testsv8.0.1253Bram Moolenaar
Problem: Still too many old style tests. Solution: Convert a few more tests to new style. (Yegappan Lakshmanan, closes #2272)
2017-10-27patch 8.0.1224: still interference between test functionsv8.0.1224Bram Moolenaar
Problem: Still interference between test functions. Solution: Clear autocommands. Wipe all buffers. Fix tests that depend on a specific start context.
2017-10-26patch 8.0.1218: writing to freed memory in autocmdv8.0.1218Bram Moolenaar
Problem: Writing to freed memory in autocmd. Solution: Make a copy of the tag line. (Dominique Pelle, closes #2245)
2017-10-22patch 8.0.1209: still too many old style testsv8.0.1209Bram Moolenaar
Problem: Still too many old style tests. Solution: Convert a few more tests to new style. (Yegappan Lakshmanan, closes #2230)
2017-10-19patch 8.0.1206: no autocmd for entering or leaving the command linev8.0.1206Bram Moolenaar
Problem: No autocmd for entering or leaving the command line. Solution: Add CmdlineEnter and CmdlineLeave.
2017-10-19patch 8.0.1204: a QuitPre autocommand may get the wrong file namev8.0.1204Bram Moolenaar
Problem: A QuitPre autocommand may get the wrong file name. Solution: Pass the buffer being closed to apply_autocmds(). (Rich Howe)
2017-10-15patch 8.0.1200: tests switch the bell off twicev8.0.1200Bram Moolenaar
Problem: Tests switch the bell off twice. Solution: Don't set 'belloff' in individual tests. (Christian Brabandt)
2017-10-14patch 8.0.1193: crash when wiping out a buffer after using getbufinfo()v8.0.1193Bram Moolenaar
Problem: Crash when wiping out a buffer after using getbufinfo(). (Yegappan Lakshmanan) Solution: Remove b:changedtick from the buffer variables.
2017-10-13patch 8.0.1188: autocmd test fails on MS-Windowsv8.0.1188Bram Moolenaar
Problem: Autocmd test fails on MS-Windows. Solution: Give the buffer a name and find the buffer to be wiped out by name.
2017-10-12patch 8.0.1186: still quite a few old style testsv8.0.1186Bram Moolenaar
Problem: Still quite a few old style tests. Solution: Convert old to new style tests. (Yegappan Lakshmanan) Avoid ringing the bell while running tests.
2017-08-20patch 8.0.0974: resetting a string option does not trigger OptionSetv8.0.0974Bram Moolenaar
Problem: Resetting a string option does not trigger OptionSet. (Rick Howe) Solution: Set the origval.
2017-08-04patch 8.0.0861: still many old style testsv8.0.0861Bram Moolenaar
Problem: Still many old style tests. Solution: Convert several tests to new style. (Yegappan Lakshmanan)
2017-07-19patch 8.0.0736: OptionSet not triggered when entering diff modev8.0.0736Bram Moolenaar
Problem: The OptionSet autocommand event is not triggered when entering diff mode. Solution: use set_option_value() instead of setting the option directly. Change the tests from old to new style. (Christian Brabandt)
2017-07-09patch 8.0.0703: illegal memory access with empty :doau commandv8.0.0703Bram Moolenaar
Problem: Illegal memory access with empty :doau command. Solution: Check the event for being out of range. (James McCoy)
2017-03-21patch 8.0.0498: two autocmd tests are skipped on MS-Windowsv8.0.0498Bram Moolenaar
Problem: Two autocmd tests are skipped on MS-Windows. Solution: Make the test pass on MS-Windows. Write the messages in a file instead of getting the output of system().
2017-03-19patch 8.0.0487: the autocmd test hangs on MS-Windowsv8.0.0487Bram Moolenaar
Problem: The autocmd test hangs on MS-Windows. Solution: Skip the hanging tests for now.
2017-03-19patch 8.0.0486: crash and endless loop when closing windows in autocmdv8.0.0486Bram Moolenaar
Problem: Crash and endless loop when closing windows in a SessionLoadPost autocommand. Solution: Check for valid tabpage. (partly neovim #6308)
2017-03-19patch 8.0.0485: not all windows commands are testedv8.0.0485Bram Moolenaar
Problem: Not all windows commands are tested. Solution: Add more tests for windows commands. (Dominique Pelle, closes #1575) Run test_autocmd separately, it interferes with other tests. Fix tests that depended on side effects.
2017-01-13patch 8.0.0177: BufEnter autocommand not fired for a directoryv8.0.0177Bram Moolenaar
Problem: When opening a buffer on a directory and inside a try/catch then the BufEnter event is not triggered. Solution: Return NOTDONE from readfile() for a directory and deal with the three possible return values. (Justin M. Keyes, closes #1375, closes #1353)
2016-09-29patch 8.0.0019v8.0.0019Bram Moolenaar
Problem: Test_command_count is old style. Solution: Turn it into a new style test. (Naruhiko Nishino) Use more assert functions.
2016-09-08patch 7.4.2346v7.4.2346Bram Moolenaar
Problem: Autocommand test fails when run directly, passes when run as part of test_alot. Solution: Add command to make the cursor move. Close a tab page.
2016-09-06patch 7.4.2341v7.4.2341Bram Moolenaar
Problem: Tiny things. Test doesn't clean up properly. Solution: Adjust comment and white space. Restore option value.
2016-09-04patch 7.4.2328v7.4.2328Bram Moolenaar
Problem: Crash when BufWinLeave autocmd goes to another tab page. (Hirohito Higashi) Solution: Make close_buffer() go back to the right window.
2016-09-04patch 7.4.2324v7.4.2324Bram Moolenaar
Problem: Crash when editing a new buffer and BufUnload autocommand wipes out the new buffer. (Norio Takagi) Solution: Don't allow wiping out this buffer. (partly by Hirohito Higashi) Move old style test13 into test_autocmd. Avoid ml_get error when editing a file.
2016-09-03patch 7.4.2314v7.4.2314Bram Moolenaar
Problem: No error when deleting an augroup while it's the current one. Solution: Disallow deleting an augroup when it's the current one.
2016-09-03patch 7.4.2313v7.4.2313Bram Moolenaar
Problem: Crash when deleting an augroup and listing an autocommand. (Dominique Pelle) Solution: Make sure deleted_augroup is valid.
2016-09-01patch 7.4.2300v7.4.2300Bram Moolenaar
Problem: Get warning for deleting autocommand group when the autocommand using the group is scheduled for deletion. (Pavol Juhas) Solution: Check for deleted autocommand.
2016-07-29patch 7.4.2117v7.4.2117Bram Moolenaar
Problem: Deleting an augroup that still has autocmds does not give a warning. The next defined augroup takes its place. Solution: Give a warning and prevent the index being used for another group name.
2016-07-26patch 7.4.2103v7.4.2103Bram Moolenaar
Problem: Can't have "augroup END" right after ":au!". Solution: Check for the bar character before the command argument.
2016-07-19patch 7.4.2077v7.4.2077Bram Moolenaar
Problem: Cannot update 'tabline' when a tab was closed. Solution: Add the TabClosed autocmd event. (partly by Felipe Morales)
2016-07-19patch 7.4.2075v7.4.2075Bram Moolenaar
Problem: No autocommand event to initialize a window or tab page. Solution: Add WinNew and TabNew events. (partly by Felipe Morales)
2016-07-09patch 7.4.2006v7.4.2006Bram Moolenaar
Problem: Crash when using tabnext in BufUnload autocmd. (Norio Takagi) Solution: First check that the current buffer is the right one. (Hirohito Higashi)
2016-05-24patch 7.4.1837v7.4.1837Bram Moolenaar
Problem: The BufUnload event is triggered twice, when :bunload is used with set to or . Solution: Do not trigger the event when ml_mfp is NULL. (Hirohito Higashi)
2016-04-20patch 7.4.1759v7.4.1759Bram Moolenaar
Problem: When using feedkeys() in a timer the inserted characters are not used right away. Solution: Break the wait loop when characters have been added to typebuf. use this for testing CursorHoldI.
2016-03-26patch 7.4.1658v7.4.1658Bram Moolenaar
Problem: A plugin does not know when VimEnter autocommands were already triggered. Solution: Add the v:vim_did_enter variable.