Bram Moolenaar
84497cd06f
patch 9.0.0967: leaking memory from autocmd windows
...
Problem: Leaking memory from autocmd windows.
Solution: Free window when auc_win is not NULL.
2022-11-28 20:34:52 +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
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
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
Shougo Matsushita
4ccaedfcd7
patch 9.0.0756: no autocmd event for changing text in a terminal window
...
Problem: No autocmd event for changing text in a terminal window.
Solution: Add TextChangedT. (Shougo Matsushita, closes #11366 )
2022-10-15 11:48:00 +01:00
zeertzjq
c601d988b6
patch 9.0.0713: <amatch> of MenuPopup event is expanded like a file name
...
Problem: <amatch> of MenuPopup event is expanded like a file name.
Solution: Do not expand <amatch> for MenuPopup. (closes #11328 )
2022-10-10 13:46:15 +01:00
Yegappan Lakshmanan
e9dcf13a30
patch 9.0.0568: autocmd code is indented more than needed
...
Problem: Autocmd code is indented more than needed.
Solution: Break out sooner. (Yegappan Lakshmanan, closes #11208 )
Also in user function code.
2022-09-24 11:30:41 +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
Bram Moolenaar
d61efa50f8
patch 9.0.0063: too many type casts for dict_get functions
...
Problem: Too many type casts for dict_get functions.
Solution: Change the key argument from "char_u *" to "char *".
2022-07-23 09:52:04 +01:00
Bram Moolenaar
5fa9f23a63
patch 9.0.0061: ml_get error with nested autocommand
...
Problem: ml_get error with nested autocommand.
Solution: Also check line numbers for a nested autocommand. (closes #10761 )
2022-07-23 09:06:48 +01:00
Yegappan Lakshmanan
ca195cc84f
patch 8.2.5089: some functions return a different value on failure
...
Problem: Some functions return a different value on failure.
Solution: Initialize the return value earlier. (Yegappan Lakshmanan,
closes #10568 )
2022-06-14 13:42:26 +01:00
Bram Moolenaar
882476ad7b
patch 8.2.5051: check for autocmd_add() event argument is confusing
...
Problem: Check for autocmd_add() event argument is confusing.
Solution: Make the code more straightforward.
2022-06-01 16:02:38 +01:00
Yegappan Lakshmanan
00e977cb83
patch 8.2.5049: insufficient tests for autocommands
...
Problem: Insufficient tests for autocommands.
Solution: Add a few more tests. (Yegappan Lakshmanan, closes #10507 )
2022-06-01 12:31:53 +01:00
Bram Moolenaar
968443efb5
patch 8.2.5033: build error with +eval but without +quickfix
...
Problem: Build error with +eval but without +quickfix. Warning for
uninitialized variable.
Solution: Adjust #ifdefs. (John Marriott)
2022-05-27 21:16:34 +01:00
Yegappan Lakshmanan
e0ff3a7de6
patch 8.2.5030: autocmd_add() can only handle one event and pattern
...
Problem: autocmd_add() can only handle one event and pattern.
Solution: Support a list of events and patterns. (Yegappan Lakshmanan,
closes #10483 )
2022-05-27 18:05:33 +01:00
Yegappan Lakshmanan
971f6825ee
patch 8.2.5011: Replacing an autocommand requires several lines
...
Problem: Replacing an autocommand requires several lines.
Solution: Add the "replace" flag to autocmd_add(). (Yegappan Lakshmanan,
closes #10473 )
2022-05-24 11:40:11 +01:00
Yegappan Lakshmanan
1755a91851
patch 8.2.4981: it is not possible to manipulate autocommands
...
Problem: It is not possible to manipulate autocommands.
Solution: Add functions to add, get and set autocommands. (Yegappan
Lakshmanan, closes #10291 )
2022-05-19 10:31:47 +01:00
Bram Moolenaar
249591057b
patch 8.2.4911: the mode #defines are not clearly named
...
Problem: The mode #defines are not clearly named.
Solution: Prepend MODE_. Renumber them to put the mapped modes first.
2022-05-07 20:01:16 +01:00
LemonBoy
eca7c60d68
patch 8.2.4749: <script> is not expanded in autocmd context
...
Problem: <script> is not expanded in autocmd context.
Solution: Add the context to the pattern struct. (closes #10144 )
Rename AutoPatCmd to AutoPatCmd_T.
2022-04-14 15:39:43 +01:00
LemonBoy
2bf52dd065
patch 8.2.4723: the ModeChanged autocmd event is inefficient
...
Problem: The ModeChanged autocmd event is inefficient.
Solution: Avoid allocating memory. (closes #10134 ) Rename
trigger_modechanged() to may_trigger_modechanged().
2022-04-09 18:17:34 +01:00
LemonBoy
0937182d49
patch 8.2.4713: plugins cannot track text scrolling
...
Problem: Plugins cannot track text scrolling.
Solution: Add the WinScrolled event. (closes #10102 )
2022-04-08 15:18:45 +01:00
Bram Moolenaar
f07751457c
patch 8.2.4505: Vim9: outdated "autocmd nested" still works
...
Problem: Vim9: outdated "autocmd nested" still works.
Solution: Do not accept the :autocmd argument "nested" without "++" in Vim9
script.
2022-03-04 20:10:38 +00:00
kylo252
ae6f1d8b14
patch 8.2.4402: missing parenthesis may cause unexpected problems
...
Problem: Missing parenthesis may cause unexpected problems.
Solution: Add more parenthesis is macros. (closes #9788 )
2022-02-16 19:24:07 +00:00
Bram Moolenaar
f6246f51e3
patch 8.2.4345: <amatch> is expanded like a file name for DirChangedPre
...
Problem: <amatch> is expanded like a file name for DirChangedPre.
Solution: Do not expand <amatch>. (closes #9742 ) Also for the User event.
2022-02-11 16:30:12 +00:00
Bram Moolenaar
28e8f73ae2
patch 8.2.4335: no autocommand event triggered before changing directory
...
Problem: No autocommand event triggered before changing directory. (Ronnie
Magatti)
Solution: Add DirChangedPre. (closes #9721 )
2022-02-09 12:58:20 +00:00
Bram Moolenaar
dff97e65eb
patch 8.2.4208: using setbufvar() may change the window title
...
Problem: Using setbufvar() may change the window title.
Solution: Do not redraw when creating the autocommand window. (closes #9613 )
2022-01-24 20:00:55 +00:00
Bram Moolenaar
cb1956d6f2
patch 8.2.4028: ml_get error with :doautoall and Visual area
...
Problem: ml_get error with :doautoall and Visual area. (Sean Dewar)
Solution: Disable Visual mode while executing autocommands.
2022-01-07 15:45:18 +00:00
Bram Moolenaar
460ae5dfca
patch 8.2.3967: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
2022-01-01 14:19:49 +00:00
Bram Moolenaar
436b5adc97
patch 8.2.3961: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
2021-12-31 22:49:24 +00:00
Bram Moolenaar
f1474d801b
patch 8.2.3960: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
2021-12-31 19:59:55 +00:00
Bram Moolenaar
6d0570117a
patch 8.2.3959: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
2021-12-31 18:49:43 +00:00
Bram Moolenaar
b6db146762
patch 8.2.3886: can define autocmd for every event by using "au!"
...
Problem: Can define autocmd for every event by using "au!".
Solution: Check if a command is present also for "au!".
2021-12-24 19:24:47 +00:00
Bram Moolenaar
d2ff705af3
patch 8.2.3837: QNX: crash when compiled with GUI but using terminal
...
Problem: QNX: crash when compiled with GUI but using terminal.
Solution: Check gui.in_use is set. (Hirohito Higashi, closes #9363 )
2021-12-17 16:00:04 +00:00
ichizok
c3f91c0648
patch 8.2.3833: error from term_start() not caught by try/catch
...
Problem: Error from term_start() not caught by try/catch.
Solution: save and restore did_emsg when applying autocommands. (Ozaki
Kiichi, closes #9361 )
2021-12-17 09:44:33 +00:00
Bram Moolenaar
651fca85c7
patch 8.2.3699: the +title feature adds a lot of #ifdef but little code
...
Problem: The +title feature adds a lot of #ifdef but little code.
Solution: Graduate the +title feature.
2021-11-29 20:39:38 +00:00
Bram Moolenaar
b8e642f7ac
patch 8.2.3626: "au! event" cannot be followed by another command
...
Problem: "au!" and "au! event" cannot be followed by another command as
documented.
Solution: When a bar is found set nextcmd.
2021-11-20 10:38:25 +00:00
naohiro ono
23beefed73
patch 8.2.3591: no event is triggered when closing a window
...
Problem: No event is triggered when closing a window.
Solution: Add the WinClosed event. (Naohiro Ono, closes #9110 )
2021-11-13 12:38:49 +00:00
=?UTF-8?q?Magnus=20Gro=C3=9F?=
25def2c8b8
patch 8.2.3555: ModeChanged is not triggered on every mode change
...
Problem: ModeChanged is not triggered on every mode change.
Solution: Also trigger on minor mode changes. (Maguns Gross, closes #8999 )
2021-10-22 18:56:39 +01:00
=?UTF-8?q?Dundar=20G=C3=B6c?=
dfa5e464d4
patch 8.2.3460: some type casts are not needed
...
Problem: Some type casts are not needed.
Solution: Remove unnecessary type casts. (closes #8934 )
2021-10-02 11:26:51 +01:00
=?UTF-8?q?Magnus=20Gro=C3=9F?=
f1e8876fa2
patch 8.2.3430: no generic way to trigger an autocommand on mode change
...
Problem: No generic way to trigger an autocommand on mode change.
Solution: Add the ModeChanged autocommand event. (Magnus Gross, closes #8856 )
2021-09-12 13:39:55 +02:00
Bram Moolenaar
1b154ea121
patch 8.2.3306: unexpected "No matching autocommands"
...
Problem: Unexpected "No matching autocommands".
Solution: Do not give the message when aborting. Mention the arguments in
the message. (closes #8690 )
2021-08-07 13:59:43 +02:00
Bram Moolenaar
73b8b0ae3a
patch 8.2.3268: cannot use a block with :autocmd like with :command
...
Problem: Cannot use a block with :autocmd like with :command.
Solution: Add support for a {} block after :autocmd. (closes #8620 )
2021-08-01 14:52:32 +02:00
Bram Moolenaar
1e6bbfb560
patch 8.2.2695: cursor position reset with nested autocommands
...
Problem: Cursor position reset with nested autocommands.
Solution: Only check and reset line numbers for not nested autocommands.
(closes #5820 )
2021-04-03 13:19:26 +02:00
Bram Moolenaar
41cd80335c
patch 8.2.2596: :doautocmd may confuse scripts listening to WinEnter
...
Problem: :doautocmd may confuse scripts listening to WinEnter.
Solution: Do the current buffer last. (closes #7958 )
2021-03-13 15:47:56 +01:00
Bram Moolenaar
9a046fd08b
patch 8.2.2420: too many problems with using all autocommand events
...
Problem: Too many problems with using all autocommand events.
Solution: Disallow defining an autocommand for all events.
2021-01-28 13:47:59 +01:00
Bram Moolenaar
9b8d62267f
patch 8.2.2238: Vim9: cannot load a Vim9 script without the +eval feature
...
Problem: Vim9: cannot load a Vim9 script without the +eval feature.
Solution: Support Vim9 script syntax without the +eval feature.
2020-12-28 18:26:00 +01:00
Bram Moolenaar
100118c73a
patch 8.2.2128: there is no way to do something on CTRL-Z
...
Problem: There is no way to do something on CTRL-Z.
Solution: Add VimSuspend and VimResume autocommand events. (closes #7450 )
2020-12-11 19:30:34 +01:00
Bram Moolenaar
cbcd9cbd77
patch 8.2.1966: popup becomes current window after closing a terminal window
...
Problem: Popup becomes current window after closing a terminal window.
Solution: When restoring the window after executing autocommands, check that
the window ID is still the same. (Naruhiko Nishino,
closes #7272 )
2020-11-07 16:58:59 +01:00
Bram Moolenaar
b53e13a91a
patch 8.2.1874: can't do something just before leaving Insert mode
...
Problem: Can't do something just before leaving Insert mode.
Solution: Add the InsertLeavePre autocommand event. (closes #7177 )
2020-10-21 12:19:53 +02:00