summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_autocmd.vim
AgeCommit message (Collapse)Author
2023-10-27patch 9.0.2075: TextChangedI may not always triggerv9.0.2075Christian Brabandt
Problem: TextChangedI may not always trigger Solution: trigger it in more cases: for insert/ append/change operations, and when opening a new line, fixes: #13367 closes: #13375 Signed-off-by: Christian Brabandt <cb@256bit.org> Signed-off-by: Evgeni Chasnovski <evgeni.chasnovski@gmail.com>
2023-10-15patch 9.0.2031: TextChangedI may be triggered by non-insert mode changev9.0.2031Evgeni Chasnovski
Problem: `TextChangedI` can trigger on entering Insert mode if there was previously a change not in Insert mode. Solution: Make it trigger only when text is actually changed in Insert mode. closes: #13265 closes: #13338 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Evgeni Chasnovski <evgeni.chasnovski@gmail.com>
2023-09-24patch 9.0.1934: :bwipe fails after switching window from aucmd_win.v9.0.1934zeertzjq
Problem: :bwipe fails after switching window from aucmd_win. Solution: Decrement b_nwindows after switching back to aucmd_win. closes: #13160 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2023-09-09patch 9.0.1886: Various Typosv9.0.1886Christian Brabandt
Problem: Various Typos Solution: Fix Typos This is a collection of typo related commits. closes: #12753 closes: #13016 Co-authored-by: Adri Verhoef <a3@a3.xs4all.nl> Co-authored-by: zeertzjq <zeertzjq@outlook.com> Co-authored-by: Viktor Szépe <viktor@szepe.net> Co-authored-by: nuid64 <lvkuzvesov@proton.me> Co-authored-by: Meng Xiangzhuo <aumo@foxmail.com> Co-authored-by: Dominique Pellé <dominique.pelle@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-04-26patch 9.0.1490: the ModeChanged event may be triggered too oftenv9.0.1490zeertzjq
Problem: The ModeChanged event may be triggered too often. Solution: Only trigger ModeChanged when no operator is pending. (closes #12298)
2023-04-15patch 9.0.1456: shortmess test depends on order of test executionv9.0.1456zeertzjq
Problem: Shortmess test depends on order of test execution. Solution: Clear messages. (closes #12264)
2023-02-11patch 9.0.1299: change for triggering incsearch not sufficiently testedv9.0.1299zeertzjq
Problem: Change for triggering incsearch not sufficiently tested. Solution: Add a test case. Simplify the code. (closes #11971)
2023-02-06patch 9.0.1290: CTRL-N and -P on cmdline don't trigger CmdlineChangedv9.0.1290zeertzjq
Problem: CTRL-N and -P on cmdline don't trigger CmdlineChanged. Solution: Jump to cmdline_changed instead of cmdline_not_changed. (closes #11956)
2023-01-28patch 9.0.1257: code style is not check in test scriptsv9.0.1257Bram Moolenaar
Problem: Code style is not check in test scripts. Solution: Add basic code style check for test files.
2023-01-17patch 9.0.1214: file left behind after running testsv9.0.1214Dominique Pelle
Problem: File left behind after running tests. Solution: Delete the file. (Dominique Pellé, closes #11839)
2022-12-31patch 9.0.1118: sporadic test failures when using a terminal windowv9.0.1118James McCoy
Problem: Sporadic test failures when using a terminal window. Solution: Adjust waiting times. (James McCoy, closes #11763)
2022-12-22patch 9.0.1087: autocommand test sometimes failsv9.0.1087James McCoy
Problem: Autocommand test sometimes fails. Solution: Add a short delay. (James McCoy, closes #11737)
2022-12-16patch 9.0.1064: code for making 'shortmess' temporarily empty is repeatedv9.0.1064Christian Brabandt
Problem: Code for making 'shortmess' temporarily empty is repeated. Solution: Add functions for making 'shortmess' empty and restoring it. (Christian Brabandt, closes #11709)
2022-12-09patch 9.0.1039: using a <Cmd> mapping CmdlineChanged may be triggered twicev9.0.1039Bram Moolenaar
Problem: Using a <Cmd> mapping CmdlineChanged may be triggered twice. Solution: Count the number of times CmdlineChanged is triggered and avoid doing it twice. (closes #116820
2022-12-07patch 9.0.1025: WinScrolled is not triggered when filler lines changev9.0.1025zeertzjq
Problem: WinScrolled is not triggered when filler lines change. Solution: Add "topfill" to the values that WinScrolled triggers on. (closes #11668)
2022-12-05patch 9.0.1010: stray warnings for existing swap filesv9.0.1010Bram Moolenaar
Problem: Stray warnings for existing swap files. Solution: Wipe out the buffer until it has no name and no swap file.
2022-11-28patch 9.0.0965: using one window for executing autocommands is insufficientv9.0.0965Bram Moolenaar
Problem: Using one window for executing autocommands is insufficient. Solution: Use up to five windows for executing autocommands.
2022-11-25patch 9.0.0949: crash when unletting a variable while listing variablesv9.0.0949Bram Moolenaar
Problem: Crash when unletting a variable while listing variables. Solution: Disallow changing a hashtable while going over the entries. (closes #11435)
2022-11-22patch 9.0.0917: the WinScrolled autocommand event is not enoughv9.0.0917Bram Moolenaar
Problem: The WinScrolled autocommand event is not enough. Solution: Add WinResized and provide information about what changed. (closes #11576)
2022-11-20patch 9.0.0915: WinScrolled may trigger immediately when definedv9.0.0915Bram Moolenaar
Problem: WinScrolled may trigger immediately when defined. Solution: Initialize the fields in all windows. (closes #11582)
2022-11-19patch 9.0.0913: only change in current window triggers the WinScrolled eventv9.0.0913Bram Moolenaar
Problem: Only a change in the current window triggers the WinScrolled event. Solution: Trigger WinScrolled if any window scrolled or changed size. (issue #11576)
2022-11-19patch 9.0.0909: error message for layout change does not match actionv9.0.0909Bram Moolenaar
Problem: Error message for layout change does not match action. Solution: Pass the command to where the error is given. (closes #11573)
2022-11-13patch 9.0.0871: using freed memory when clearing augroup at more promptv9.0.0871Bram Moolenaar
Problem: Using freed memory when clearing augroup at more prompt. Solution: Delay clearing augroup until it's safe. (closes #11441)
2022-10-18patch 9.0.0790: test for dummy buffer does not always produce the E86 errorv9.0.0790Bram Moolenaar
Problem: Test for dummy buffer does not always produce the E86 error. Solution: Do not check if the error is produced.
2022-10-18patch 9.0.0789: dummy buffer ends up in a windowv9.0.0789Bram Moolenaar
Problem: Dummy buffer ends up in a window. Solution: Disallow navigating to a dummy buffer.
2022-10-18patch 9.0.0788: ModeChanged autocmd not executed when Visual ends with CTRL-Cv9.0.0788Bram Moolenaar
Problem: ModeChanged autocmd not executed when Visual mode is ended with CTRL-C. Solution: Do not trigger the autocmd when got_int is set. (closes #11394)
2022-10-05patch 9.0.0663: tests check for +cmdwin feature which is always presentv9.0.0663zeertzjq
Problem: Tests check for +cmdwin feature which is always present. Solution: Remove the checks. (closes #11287)
2022-09-28patch 9.0.0614: SpellFileMissing autocmd may delete bufferv9.0.0614Bram Moolenaar
Problem: SpellFileMissing autocmd may delete buffer. Solution: Disallow deleting the current buffer to avoid using freed memory.
2022-09-23patch 9.0.0564: a few tests keep failing on MacOS M1v9.0.0564Bram Moolenaar
Problem: A few tests keep failing on MacOS M1. Solution: Add a test check CheckNotMacM1. Fix timer tests.
2022-09-22patch 9.0.0550: crash when closing a tabpage and buffer is NULLv9.0.0550zeertzjq
Problem: Crash when closing a tabpage and buffer is NULL. Solution: Adjust how autocommands are triggered when closing a window. (closes #11198, closes #11197)
2022-09-09patch 9.0.0428: autocmd test uses common file namev9.0.0428Bram Moolenaar
Problem: Autocmd test uses common file name. Solution: Use unique name to reduce flakiness.
2022-09-09patch 9.0.0425: autocmd test is a bit flaky on MS-Windowsv9.0.0425Bram Moolenaar
Problem: Autocmd test is a bit flaky on MS-Windows. Solution: Add a bit more sleeping. (Ken Takata, closes #11095)
2022-09-08patch 9.0.0415: on MS-Windows some tests are flakyv9.0.0415K.Takata
Problem: On MS-Windows some tests are flaky. Solution: Add sleeps, disable swapfile, mark test as flaky. (Ken Takata, closes #11082)
2022-09-07patch 9.0.0411: only created files can be cleaned up with one callv9.0.0411Bram Moolenaar
Problem: Only created files can be cleaned up with one call. Solution: Add flags to mkdir() to delete with a deferred function. Expand the writefile() name to a full path to handle changing directory.
2022-09-04patch 9.0.0380: deleting files in tests is a hassleBram Moolenaar
Problem: Deleting files in tests is a hassle. Solution: Use the new 'D' flag of writefile().
2022-09-02patch 9.0.0363: common names in test files causes tests to be flakyv9.0.0363Bram Moolenaar
Problem: Common names in test files causes tests to be flaky. Solution: Use more specific names.
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.