summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_autocmd.vim
AgeCommit message (Collapse)Author
2022-08-30patch 9.0.0336: tests are flaky because of using a common file namev9.0.0336Bram Moolenaar
Problem: Tests are flaky because of using a common file name. Solution: Rename files and directories to be more unique.
2022-08-30patch 9.0.0332: overwrite check may block BufWriteCmdv9.0.0332zeertzjq
Problem: Overwrite check may block BufWriteCmd. Solution: Do not use overwrite check when 'buftype' is "acwrite". (closes #11011)
2022-08-29patch 9.0.0323: using common name in tests leads to flaky testsv9.0.0323Bram Moolenaar
Problem: Using common name in tests leads to flaky tests. Solution: Rename files and directories to be more specific.
2022-08-29patch 9.0.0313: using common name in tests leads to flaky testsv9.0.0313Bram Moolenaar
Problem: Using common name in tests leads to flaky tests. Solution: Rename files and directories to be more specific.
2022-08-28patch 9.0.0304: WinScrolled is not triggered when only skipcol changesv9.0.0304zeertzjq
Problem: WinScrolled is not triggered when only skipcol changes. Solution: Add w_last_skipcol and use it. (closes #10998)
2022-08-26patch 9.0.0276: 'buftype' values not sufficiently testedv9.0.0276zeertzjq
Problem: 'buftype' values not sufficiently tested. Solution: Add and extend tests with 'buftype' values. (closes #10988)
2022-08-26patch 9.0.0275: BufEnter not triggered when using ":edit" in "nofile" bufferv9.0.0275Bram Moolenaar
Problem: BufEnter not triggered when using ":edit" in "nofile" buffer. Solution: Let readfile() return NOTDONE. (closes #10986)
2022-08-26patch 9.0.0272: BufReadCmd not triggered when loading a "nofile" bufferv9.0.0272Bram Moolenaar
Problem: BufReadCmd not triggered when loading a "nofile" buffer. (Maxim Kim) Solution: Call readfile() but bail out before reading a file. (closes #10983)
2022-07-27patch 9.0.0094: cursor restored unexpected with nested autocommandv9.0.0094Bram Moolenaar
Problem: Cursor restored unexpected with nested autocommand. Solution: Do not restore the cursor when it was moved intentionally. (closes #10780)
2022-07-26patch 9.0.0083: ModeChanged event not triggered when leaving cmdline windowv9.0.0083zeertzjq
Problem: ModeChanged event not triggered when leaving the cmdline window. Solution: Call may_trigger_modechanged(). (closes #10791)
2022-07-26patch 9.0.0077: wrong restored cursor position when switching window in autocmdv9.0.0077Bram Moolenaar
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 #10775)
2022-07-23patch 9.0.0061: ml_get error with nested autocommandv9.0.0061Bram Moolenaar
Problem: ml_get error with nested autocommand. Solution: Also check line numbers for a nested autocommand. (closes #10761)
2022-06-12patch 8.2.5083: autocmd test still fails on MS-Windowsv8.2.5083Bram Moolenaar
Problem: Autocmd test still fails on MS-Windows. Solution: Change backward to forward slashes.
2022-06-12patch 8.2.5081: autocmd test fails on MS-Windowsv8.2.5081Bram Moolenaar
Problem: Autocmd test fails on MS-Windows. Solution: Set shellslash to get forward slashes.
2022-06-12patch 8.2.5079: DirChanged autocommand may use freed memoryv8.2.5079Bram Moolenaar
Problem: DirChanged autocommand may use freed memory. (Shane-XB Qian) Solution: Free the memory later. (closes #10555)
2022-06-03patch 8.2.5053: cannot have a comment halfway an expression in a blockv8.2.5053Bram Moolenaar
Problem: Cannot have a comment halfway an expression in an autocmd command block. Solution: When skipping over the NL also skip over comments. (closes #10519)
2022-06-01patch 8.2.5049: insufficient tests for autocommandsv8.2.5049Yegappan Lakshmanan
Problem: Insufficient tests for autocommands. Solution: Add a few more tests. (Yegappan Lakshmanan, closes #10507)
2022-05-27patch 8.2.5030: autocmd_add() can only handle one event and patternv8.2.5030Yegappan Lakshmanan
Problem: autocmd_add() can only handle one event and pattern. Solution: Support a list of events and patterns. (Yegappan Lakshmanan, closes #10483)
2022-05-24patch 8.2.5011: Replacing an autocommand requires several linesv8.2.5011Yegappan Lakshmanan
Problem: Replacing an autocommand requires several lines. Solution: Add the "replace" flag to autocmd_add(). (Yegappan Lakshmanan, closes #10473)
2022-05-19patch 8.2.4981: it is not possible to manipulate autocommandsv8.2.4981Yegappan Lakshmanan
Problem: It is not possible to manipulate autocommands. Solution: Add functions to add, get and set autocommands. (Yegappan Lakshmanan, closes #10291)
2022-04-21patch 8.2.4803: WinScrolled not always triggered when scrolling with mousev8.2.4803LemonBoy
Problem: WinScrolled not always triggered when scrolling with the mouse. Solution: Add calls to may_trigger_winscrolled(). (closes #10246)
2022-04-21patch 8.2.4802: test is not cleaned upv8.2.4802zeertzjq
Problem: Test is not cleaned up. Solution: Make test clean up after itself. Avoid NUL. (closes #10233)
2022-04-19patch 8.2.4791: events triggered in different order when reusing bufferv8.2.4791Charlie Groves
Problem: Autocmd events triggered in different order when reusing an empty buffer. Solution: Call buff_freeall() earlier. (Charlie Groves, closes #10198)
2022-04-12patch 8.2.4739: accessing freed memory after WinScrolled autocmd eventv8.2.4739zeertzjq
Problem: Accessing freed memory after WinScrolled autocmd event. Solution: Check the window pointer is still valid. (closes #10156) Remove the argument from may_trigger_winscrolled().
2022-04-10patch 8.2.4728: no test that v:event cannot be modifiedv8.2.4728zeertzjq
Problem: No test that v:event cannot be modified. Solution: Add a test. (closes #10139)
2022-04-09patch 8.2.4717: for TextYankPost v:event does not contain all informationv8.2.4717Bram Moolenaar
Problem: For TextYankPost v:event does not contain information about the operation being inclusive or not. Solution: Add "inclusive" to v:event. (Justn M. Keyes, Yegappan Lakshmanan, closes #10125)
2022-04-08patch 8.2.4713: plugins cannot track text scrollingv8.2.4713LemonBoy
Problem: Plugins cannot track text scrolling. Solution: Add the WinScrolled event. (closes #10102)
2022-04-07patch 8.2.4706: buffer remains active with WinClosed and tabpagesv8.2.4706zeertzjq
Problem: Buffer remains active if a WinClosed event throws an exception when there are multiple tabpages. Solution: Ignore aborting() when closing the buffer. (closes #10101)
2022-04-06patch 8.2.4700: buffer remains active if WinClosed event throws an exceptionv8.2.4700Bram Moolenaar
Problem: Buffer remains active if a WinClosed event throws an exception. Solution: Ignore aborting() when closing the buffer. (closes #10097)
2022-03-26patch 8.2.4631: crash when switching window in BufWipeout autocommandv8.2.4631Bram Moolenaar
Problem: Crash when switching window in BufWipeout autocommand. Solution: Put any buffer in the window to avoid it being NULL. (closes #10024)
2022-03-22patch 8.2.4609: :unhide does not check for failing to close a windowv8.2.4609Bram Moolenaar
Problem: :unhide does not check for failing to close a window. Solution: When closing a window fails continue with the next one. Do not try closing the autocmd window. (closes #9984)
2022-03-04patch 8.2.4505: Vim9: outdated "autocmd nested" still worksv8.2.4505Bram Moolenaar
Problem: Vim9: outdated "autocmd nested" still works. Solution: Do not accept the :autocmd argument "nested" without "++" in Vim9 script.
2022-02-11patch 8.2.4345: <amatch> is expanded like a file name for DirChangedPrev8.2.4345Bram Moolenaar
Problem: <amatch> is expanded like a file name for DirChangedPre. Solution: Do not expand <amatch>. (closes #9742) Also for the User event.
2022-02-09patch 8.2.4335: no autocommand event triggered before changing directoryv8.2.4335Bram Moolenaar
Problem: No autocommand event triggered before changing directory. (Ronnie Magatti) Solution: Add DirChangedPre. (closes #9721)
2022-01-20patch 8.2.4149: test override not restored, autocommand left behindv8.2.4149Bram Moolenaar
Problem: Test override not restored, autocommand left behind. Solution: Correct restoring test override. Delete autocommand afterwards.
2022-01-07patch 8.2.4028: ml_get error with :doautoall and Visual areav8.2.4028Bram Moolenaar
Problem: ml_get error with :doautoall and Visual area. (Sean Dewar) Solution: Disable Visual mode while executing autocommands.
2021-12-24patch 8.2.3886: can define autocmd for every event by using "au!"v8.2.3886Bram Moolenaar
Problem: Can define autocmd for every event by using "au!". Solution: Check if a command is present also for "au!".
2021-11-20patch 8.2.3626: "au! event" cannot be followed by another commandv8.2.3626Bram Moolenaar
Problem: "au!" and "au! event" cannot be followed by another command as documented. Solution: When a bar is found set nextcmd.
2021-11-17patch 8.2.3608: users who type "q:" instead of ":q" are confusedv8.2.3608Egor Zvorykin
Problem: Users who type "q:" instead of ":q" are confused. Solution: Add an autocmd to give a message that explains this is the command-line window. (Egor Zvorykin, closes #9146)
2021-11-13patch 8.2.3591: no event is triggered when closing a windowv8.2.3591naohiro ono
Problem: No event is triggered when closing a window. Solution: Add the WinClosed event. (Naohiro Ono, closes #9110)
2021-10-21patch 8.2.3549: mistakes in test commentsv8.2.3549zeertzjq
Problem: Mistakes in test comments. Solution: Fix the comments. (closes #9029)
2021-10-16patch 8.2.3518: Test_xrestore sometimes failsv8.2.3518Bram Moolenaar
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.
2021-10-16patch 8.2.3517: TextChanged does not trigger after TextChangedIv8.2.3517Christian Brabandt
Problem: TextChanged does not trigger after TextChangedI. Solution: Store the tick separately for TextChangedI. (Christian Brabandt, closes #8968, closes #8932)
2021-10-03patch 8.2.3467: CursorHoldI event interferes with "CTRL-G U"v8.2.3467Bram Moolenaar
Problem: CursorHoldI event interferes with "CTRL-G U". (Naohiro Ono) Solution: Restore the flag for "CTRL-G U" after triggering CursorHoldI. (closes #8937)
2021-09-22patch 8.2.3453: autocmd not executed when editing a directoryv8.2.3453Bram Moolenaar
Problem: Autocmd not executed when editing a directory ending in a path separator inside try block. Solution: Return NOTDONE instead of FAIL. (closes #8885)
2021-08-05patch 8.2.3297: cannot use all commands inside a {} blockv8.2.3297Bram Moolenaar
Problem: Cannot use all commands inside a {} block after :command and :autocmd. Solution: Do consider \n to separate commands. (closes #8620)
2021-08-01patch 8.2.3268: cannot use a block with :autocmd like with :commandv8.2.3268Bram Moolenaar
Problem: Cannot use a block with :autocmd like with :command. Solution: Add support for a {} block after :autocmd. (closes #8620)
2021-03-13patch 8.2.2596: :doautocmd may confuse scripts listening to WinEnterv8.2.2596Bram Moolenaar
Problem: :doautocmd may confuse scripts listening to WinEnter. Solution: Do the current buffer last. (closes #7958)
2021-02-07patch 8.2.2477: autocommand tests hang on MS-Windowsv8.2.2477Bram Moolenaar
Problem: Autocommand tests hang on MS-Windows. Solution: Skip a couple of tests. Fix file name.
2021-02-07patch 8.2.2476: using freed memory when splitting window while closing bufferv8.2.2476Bram Moolenaar
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.