Christian Brabandt
f0d3d4a426
patch 9.1.0112: Remove undo information, when cleaning quickfix buffer
...
Problem: When the quickfix buffer has been modified an autocommand
may invalidate the undo stack (kawarimidoll)
Solution: When clearing the quickfix buffer, also wipe the undo stack
fixes : #13905
closes : #13928
Signed-off-by: Christian Brabandt <cb@256bit.org >
2024-02-15 20:15:04 +01:00
Christian Brabandt
c9e79e5284
patch 9.1.0088: TextChanged not triggered for :norm! commands
...
Problem: TextChanged not triggered for :norm! commands
(machakann, after v9.0.2031)
Solution: Only reset curbuf->b_last_changedtick if TextChangedI
was triggered in insert mode (and not blocked)
Note: for unknown reasons, the test fails on Windows (but seems to work
fine when running interactively)
fixes : #13967
closes : #13984
Signed-off-by: Christian Brabandt <cb@256bit.org >
2024-02-09 19:34:36 +01:00
Sergey Vlasov
1f47db75fd
patch 9.1.0059: No event triggered before creating a window
...
Problem: No event is triggered before creating a window.
(Sergey Vlasov)
Solution: Add the WinNewPre event (Sergey Vlasov)
fixes : #10635
closes : #12761
Signed-off-by: Sergey Vlasov <sergey@vlasov.me >
Signed-off-by: Christian Brabandt <cb@256bit.org >
2024-01-25 23:07:00 +01:00
zeertzjq
fcaeb3d42b
patch 9.0.2135: No test for mode() when executing Ex commands
...
Problem: No test for mode() when executing Ex commands
Solution: Add some test cases and simplify several other test cases.
Also add a few more test cases for ModeChanged.
closes : #13588
Signed-off-by: zeertzjq <zeertzjq@outlook.com >
Signed-off-by: Christian Brabandt <cb@256bit.org >
2023-11-28 20:46:29 +01:00
Christian Brabandt
4bca4897a1
patch 9.0.2075: TextChangedI may not always trigger
...
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-27 19:26:49 +02:00
Evgeni Chasnovski
d7ae263af8
patch 9.0.2031: TextChangedI may be triggered by non-insert mode change
...
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-10-15 09:59:00 +02:00
zeertzjq
46bdae036a
patch 9.0.1934: :bwipe fails after switching window from aucmd_win.
...
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-24 23:17:14 +02:00
Christian Brabandt
ee17b6f70d
patch 9.0.1886: Various Typos
...
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-09-09 11:31:38 +02:00
zeertzjq
73916bac5a
patch 9.0.1490: the ModeChanged event may be triggered too often
...
Problem: The ModeChanged event may be triggered too often.
Solution: Only trigger ModeChanged when no operator is pending.
(closes #12298 )
2023-04-26 16:50:19 +01:00
zeertzjq
657b31fa3b
patch 9.0.1456: shortmess test depends on order of test execution
...
Problem: Shortmess test depends on order of test execution.
Solution: Clear messages. (closes #12264 )
2023-04-15 21:28:02 +01:00
zeertzjq
412e0e4ed9
patch 9.0.1299: change for triggering incsearch not sufficiently tested
...
Problem: Change for triggering incsearch not sufficiently tested.
Solution: Add a test case. Simplify the code. (closes #11971 )
2023-02-11 10:34:07 +00:00
zeertzjq
af9e28a5b8
patch 9.0.1290: CTRL-N and -P on cmdline don't trigger CmdlineChanged
...
Problem: CTRL-N and -P on cmdline don't trigger CmdlineChanged.
Solution: Jump to cmdline_changed instead of cmdline_not_changed.
(closes #11956 )
2023-02-06 20:58:09 +00:00
Bram Moolenaar
94722c5107
patch 9.0.1257: code style is not check in test scripts
...
Problem: Code style is not check in test scripts.
Solution: Add basic code style check for test files.
2023-01-28 19:19:03 +00:00
Dominique Pelle
541c87c808
patch 9.0.1214: file left behind after running tests
...
Problem: File left behind after running tests.
Solution: Delete the file. (Dominique Pellé, closes #11839 )
2023-01-17 21:20:44 +00:00
James McCoy
dbe6ef1036
patch 9.0.1118: sporadic test failures when using a terminal window
...
Problem: Sporadic test failures when using a terminal window.
Solution: Adjust waiting times. (James McCoy, closes #11763 )
2022-12-31 11:44:57 +00:00
James McCoy
ff3d537704
patch 9.0.1087: autocommand test sometimes fails
...
Problem: Autocommand test sometimes fails.
Solution: Add a short delay. (James McCoy, closes #11737 )
2022-12-22 18:30:24 +00:00
Christian Brabandt
9aee8ec400
patch 9.0.1064: code for making 'shortmess' temporarily empty is repeated
...
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-16 16:41:23 +00:00
Bram Moolenaar
bb393d8259
patch 9.0.1039: using a <Cmd> mapping CmdlineChanged may be triggered twice
...
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-09 12:21:50 +00:00
zeertzjq
3fc84dc2c7
patch 9.0.1025: WinScrolled is not triggered when filler lines change
...
Problem: WinScrolled is not triggered when filler lines change.
Solution: Add "topfill" to the values that WinScrolled triggers on.
(closes #11668 )
2022-12-07 09:17:59 +00:00
Bram Moolenaar
23526d2539
patch 9.0.1010: stray warnings for existing swap files
...
Problem: Stray warnings for existing swap files.
Solution: Wipe out the buffer until it has no name and no swap file.
2022-12-05 15:50:41 +00:00
Bram Moolenaar
e76062c078
patch 9.0.0965: using one window for executing autocommands is insufficient
...
Problem: Using one window for executing autocommands is insufficient.
Solution: Use up to five windows for executing autocommands.
2022-11-28 18:51:43 +00:00
Bram Moolenaar
ef2c325f5e
patch 9.0.0949: crash when unletting a variable while listing variables
...
Problem: Crash when unletting a variable while listing variables.
Solution: Disallow changing a hashtable while going over the entries.
(closes #11435 )
2022-11-25 16:31:51 +00:00
Bram Moolenaar
35fc61cb5b
patch 9.0.0917: the WinScrolled autocommand event is not enough
...
Problem: The WinScrolled autocommand event is not enough.
Solution: Add WinResized and provide information about what changed.
(closes #11576 )
2022-11-22 12:40:50 +00:00
Bram Moolenaar
2996773276
patch 9.0.0915: WinScrolled may trigger immediately when defined
...
Problem: WinScrolled may trigger immediately when defined.
Solution: Initialize the fields in all windows. (closes #11582 )
2022-11-20 12:11:45 +00:00
Bram Moolenaar
0a60f79fd0
patch 9.0.0913: only change in current window triggers the WinScrolled event
...
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-19 21:18:11 +00:00
Bram Moolenaar
9fda81515b
patch 9.0.0909: error message for layout change does not match action
...
Problem: Error message for layout change does not match action.
Solution: Pass the command to where the error is given. (closes #11573 )
2022-11-19 13:14:10 +00:00
Bram Moolenaar
3b014befa0
patch 9.0.0871: using freed memory when clearing augroup at more prompt
...
Problem: Using freed memory when clearing augroup at more prompt.
Solution: Delay clearing augroup until it's safe. (closes #11441 )
2022-11-13 17:53:46 +00:00
Bram Moolenaar
53c5c9f50c
patch 9.0.0790: test for dummy buffer does not always produce the E86 error
...
Problem: Test for dummy buffer does not always produce the E86 error.
Solution: Do not check if the error is produced.
2022-10-18 17:25:03 +01:00
Bram Moolenaar
8f3c3c6cd0
patch 9.0.0789: dummy buffer ends up in a window
...
Problem: Dummy buffer ends up in a window.
Solution: Disallow navigating to a dummy buffer.
2022-10-18 17:05:54 +01:00
Bram Moolenaar
61c4b04799
patch 9.0.0788: ModeChanged autocmd not executed when Visual ends with CTRL-C
...
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-18 15:10:11 +01:00
zeertzjq
d195598714
patch 9.0.0663: tests check for +cmdwin feature which is always present
...
Problem: Tests check for +cmdwin feature which is always present.
Solution: Remove the checks. (closes #11287 )
2022-10-05 11:24:46 +01:00
Bram Moolenaar
ef976323e7
patch 9.0.0614: SpellFileMissing autocmd may delete buffer
...
Problem: SpellFileMissing autocmd may delete buffer.
Solution: Disallow deleting the current buffer to avoid using freed memory.
2022-09-28 11:48:30 +01:00
Bram Moolenaar
0056ca7137
patch 9.0.0564: a few tests keep failing on MacOS M1
...
Problem: A few tests keep failing on MacOS M1.
Solution: Add a test check CheckNotMacM1. Fix timer tests.
2022-09-23 21:26:39 +01:00
zeertzjq
62de54b48d
patch 9.0.0550: crash when closing a tabpage and buffer is NULL
...
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-22 18:08:37 +01:00
Bram Moolenaar
be9fc5b60c
patch 9.0.0428: autocmd test uses common file name
...
Problem: Autocmd test uses common file name.
Solution: Use unique name to reduce flakiness.
2022-09-09 17:09:35 +01:00
Bram Moolenaar
ae04a6049b
patch 9.0.0425: autocmd test is a bit flaky on MS-Windows
...
Problem: Autocmd test is a bit flaky on MS-Windows.
Solution: Add a bit more sleeping. (Ken Takata, closes #11095 )
2022-09-09 15:08:10 +01:00
K.Takata
0500e87eba
patch 9.0.0415: on MS-Windows some tests are flaky
...
Problem: On MS-Windows some tests are flaky.
Solution: Add sleeps, disable swapfile, mark test as flaky. (Ken Takata,
closes #11082 )
2022-09-08 12:28:02 +01:00
Bram Moolenaar
6f14da15ac
patch 9.0.0411: only created files can be cleaned up with one call
...
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-07 21:30:44 +01:00
Bram Moolenaar
e1f3ab73bc
patch 9.0.0380: deleting files in tests is a hassle
...
Problem: Deleting files in tests is a hassle.
Solution: Use the new 'D' flag of writefile().
2022-09-04 21:29:08 +01:00
Bram Moolenaar
b18b496997
patch 9.0.0363: common names in test files causes tests to be flaky
...
Problem: Common names in test files causes tests to be flaky.
Solution: Use more specific names.
2022-09-02 21:55:50 +01:00
Bram Moolenaar
61abe7d8f8
patch 9.0.0336: tests are flaky because of using a common file name
...
Problem: Tests are flaky because of using a common file name.
Solution: Rename files and directories to be more unique.
2022-08-30 21:46:08 +01:00
zeertzjq
9c8f94636b
patch 9.0.0332: overwrite check may block BufWriteCmd
...
Problem: Overwrite check may block BufWriteCmd.
Solution: Do not use overwrite check when 'buftype' is "acwrite".
(closes #11011 )
2022-08-30 18:17:15 +01:00
Bram Moolenaar
3b0d70f4ff
patch 9.0.0323: using common name in tests leads to flaky tests
...
Problem: Using common name in tests leads to flaky tests.
Solution: Rename files and directories to be more specific.
2022-08-29 22:31:20 +01:00
Bram Moolenaar
e7cda97b6b
patch 9.0.0313: using common name in tests leads to flaky tests
...
Problem: Using common name in tests leads to flaky tests.
Solution: Rename files and directories to be more specific.
2022-08-29 11:02:59 +01:00
zeertzjq
670ab0334b
patch 9.0.0304: WinScrolled is not triggered when only skipcol changes
...
Problem: WinScrolled is not triggered when only skipcol changes.
Solution: Add w_last_skipcol and use it. (closes #10998 )
2022-08-28 19:16:15 +01:00
zeertzjq
93f72cc119
patch 9.0.0276: 'buftype' values not sufficiently tested
...
Problem: 'buftype' values not sufficiently tested.
Solution: Add and extend tests with 'buftype' values. (closes #10988 )
2022-08-26 15:34:52 +01:00
Bram Moolenaar
a9b5b85068
patch 9.0.0275: BufEnter not triggered when using ":edit" in "nofile" buffer
...
Problem: BufEnter not triggered when using ":edit" in "nofile" buffer.
Solution: Let readfile() return NOTDONE. (closes #10986 )
2022-08-26 13:16:20 +01:00
Bram Moolenaar
b1d2c8116c
patch 9.0.0272: BufReadCmd not triggered when loading a "nofile" buffer
...
Problem: BufReadCmd not triggered when loading a "nofile" buffer. (Maxim
Kim)
Solution: Call readfile() but bail out before reading a file.
(closes #10983 )
2022-08-26 11:55:01 +01:00
Bram Moolenaar
3d6ee8bda0
patch 9.0.0094: cursor restored unexpected with nested autocommand
...
Problem: Cursor restored unexpected with nested autocommand.
Solution: Do not restore the cursor when it was moved intentionally.
(closes #10780 )
2022-07-27 15:23:35 +01:00
zeertzjq
c9e8fd6fc7
patch 9.0.0083: ModeChanged event not triggered when leaving cmdline window
...
Problem: ModeChanged event not triggered when leaving the cmdline window.
Solution: Call may_trigger_modechanged(). (closes #10791 )
2022-07-26 18:12:38 +01:00