summaryrefslogtreecommitdiffstats
path: root/src/autocmd.c
AgeCommit message (Collapse)Author
2022-05-07patch 8.2.4911: the mode #defines are not clearly namedv8.2.4911Bram Moolenaar
Problem: The mode #defines are not clearly named. Solution: Prepend MODE_. Renumber them to put the mapped modes first.
2022-04-14patch 8.2.4749: <script> is not expanded in autocmd contextv8.2.4749LemonBoy
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-09patch 8.2.4723: the ModeChanged autocmd event is inefficientv8.2.4723LemonBoy
Problem: The ModeChanged autocmd event is inefficient. Solution: Avoid allocating memory. (closes #10134) Rename trigger_modechanged() to may_trigger_modechanged().
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-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-16patch 8.2.4402: missing parenthesis may cause unexpected problemsv8.2.4402kylo252
Problem: Missing parenthesis may cause unexpected problems. Solution: Add more parenthesis is macros. (closes #9788)
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-24patch 8.2.4208: using setbufvar() may change the window titlev8.2.4208Bram Moolenaar
Problem: Using setbufvar() may change the window title. Solution: Do not redraw when creating the autocommand window. (closes #9613)
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.
2022-01-01patch 8.2.3967: error messages are spread outv8.2.3967Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
2021-12-31patch 8.2.3961: error messages are spread outv8.2.3961Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
2021-12-31patch 8.2.3960: error messages are spread outv8.2.3960Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
2021-12-31patch 8.2.3959: error messages are spread outv8.2.3959Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
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-12-17patch 8.2.3837: QNX: crash when compiled with GUI but using terminalv8.2.3837Bram Moolenaar
Problem: QNX: crash when compiled with GUI but using terminal. Solution: Check gui.in_use is set. (Hirohito Higashi, closes #9363)
2021-12-17patch 8.2.3833: error from term_start() not caught by try/catchv8.2.3833ichizok
Problem: Error from term_start() not caught by try/catch. Solution: save and restore did_emsg when applying autocommands. (Ozaki Kiichi, closes #9361)
2021-11-29patch 8.2.3699: the +title feature adds a lot of #ifdef but little codev8.2.3699Bram Moolenaar
Problem: The +title feature adds a lot of #ifdef but little code. Solution: Graduate the +title feature.
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-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-22patch 8.2.3555: ModeChanged is not triggered on every mode changev8.2.3555=?UTF-8?q?Magnus=20Gro=C3=9F?=
Problem: ModeChanged is not triggered on every mode change. Solution: Also trigger on minor mode changes. (Maguns Gross, closes #8999)
2021-10-02patch 8.2.3460: some type casts are not neededv8.2.3460=?UTF-8?q?Dundar=20G=C3=B6c?=
Problem: Some type casts are not needed. Solution: Remove unnecessary type casts. (closes #8934)
2021-09-12patch 8.2.3430: no generic way to trigger an autocommand on mode changev8.2.3430=?UTF-8?q?Magnus=20Gro=C3=9F?=
Problem: No generic way to trigger an autocommand on mode change. Solution: Add the ModeChanged autocommand event. (Magnus Gross, closes #8856)
2021-08-07patch 8.2.3306: unexpected "No matching autocommands"v8.2.3306Bram Moolenaar
Problem: Unexpected "No matching autocommands". Solution: Do not give the message when aborting. Mention the arguments in the message. (closes #8690)
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-04-03patch 8.2.2695: cursor position reset with nested autocommandsv8.2.2695Bram Moolenaar
Problem: Cursor position reset with nested autocommands. Solution: Only check and reset line numbers for not nested autocommands. (closes #5820)
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-01-28patch 8.2.2420: too many problems with using all autocommand eventsv8.2.2420Bram Moolenaar
Problem: Too many problems with using all autocommand events. Solution: Disallow defining an autocommand for all events.
2020-12-28patch 8.2.2238: Vim9: cannot load a Vim9 script without the +eval featurev8.2.2238Bram Moolenaar
Problem: Vim9: cannot load a Vim9 script without the +eval feature. Solution: Support Vim9 script syntax without the +eval feature.
2020-12-11patch 8.2.2128: there is no way to do something on CTRL-Zv8.2.2128Bram Moolenaar
Problem: There is no way to do something on CTRL-Z. Solution: Add VimSuspend and VimResume autocommand events. (closes #7450)
2020-11-07patch 8.2.1966: popup becomes current window after closing a terminal windowv8.2.1966Bram Moolenaar
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-10-21patch 8.2.1874: can't do something just before leaving Insert modev8.2.1874Bram Moolenaar
Problem: Can't do something just before leaving Insert mode. Solution: Add the InsertLeavePre autocommand event. (closes #7177)
2020-10-01patch 8.2.1783: try-catch test failsv8.2.1783Bram Moolenaar
Problem: Try-catch test fails. Solution: Don't call win_enter(), only call enterering_window().
2020-10-01patch 8.2.1781: writing to prompt buffer interferes with insert modev8.2.1781Bram Moolenaar
Problem: Writing to prompt buffer interferes with insert mode. Solution: Use win_enter() instead of just setting "curwin". (Ben Jackson, closes #7035)
2020-08-20patch 8.2.1491: Vim9: crash when compiling heredoc lines start with commentv8.2.1491Bram Moolenaar
Problem: Vim9: crash when compiling heredoc lines start with comment. Solution: Skip over NULL pointers. Do not remove comment and empty lines when fetching function lines. (closes #6743)
2020-06-12patch 8.2.0965: has_funcundefined() is not usedv8.2.0965Bram Moolenaar
Problem: Has_funcundefined() is not used. Solution: Delete the function. (Dominique Pellé, closes #6242)
2020-06-10patch 8.2.0952: no simple way to interrupt Vimv8.2.0952Bram Moolenaar
Problem: No simple way to interrupt Vim. Solution: Add the SigUSR1 autocommand, triggered by SIGUSR1. (Jacob Hayes, closes #1718)
2020-06-07patch 8.2.0928: many type casts are used for vim_strnsave()v8.2.0928Bram Moolenaar
Problem: Many type casts are used for vim_strnsave(). Solution: Make the length argument size_t instead of int. (Ken Takata, closes #5633) Remove some type casts.
2020-04-02patch 8.2.0500: using the same loop in many placesv8.2.0500Bram Moolenaar
Problem: Using the same loop in many places. Solution: Define more FOR_ALL macros. (Yegappan Lakshmanan, closes #5339)
2020-01-26patch 8.2.0158: triggering CompleteDone earlier is not backwards compatiblev8.2.0158Bram Moolenaar
Problem: Triggering CompleteDone earlier is not backwards compatible. (Daniel Hahler) Solution: Add CompleteDonePre instead.
2020-01-07patch 8.2.0098: exe stack length can be wrong without being detectedv8.2.0098Bram Moolenaar
Problem: Exe stack length can be wrong without being detected. Solution: Add a check when ABORT_ON_INTERNAL_ERROR is defined.
2019-12-29patch 8.2.0056: execution stack is incomplete and inefficientv8.2.0056Bram Moolenaar
Problem: Execution stack is incomplete and inefficient. Solution: Introduce a proper execution stack and use it instead of sourcing_name/sourcing_lnum. Create a string only when used.
2019-11-30patch 8.1.2368: using old C style commentsv8.1.2368Bram Moolenaar
Problem: Using old C style comments. Solution: Use // comments where appropriate.
2019-11-02patch 8.1.2243: typos in commentsv8.1.2243Bram Moolenaar
Problem: Typos in comments. Solution: Fix the typos. (Dominique Pelle, closes #5160) Also adjust formatting a bit.
2019-10-26patch 8.1.2219: no autocommand for open window with terminalv8.1.2219Bram Moolenaar
Problem: No autocommand for open window with terminal. Solution: Add TerminalWinOpen. (Christian Brabandt)
2019-09-16patch 8.1.2046: SafeState may be triggered at the wrong momentv8.1.2046Bram Moolenaar
Problem: SafeState may be triggered at the wrong moment. Solution: Move it up higher to after where messages are processed. Add a SafeStateAgain event to tigger there.
2019-09-15patch 8.1.2044: no easy way to process postponed workv8.1.2044Bram Moolenaar
Problem: No easy way to process postponed work. (Paul Jolly) Solution: Add the SafeState autocommand event.
2019-08-21patch 8.1.1901: the +insert_expand feature is not always availablev8.1.1901Bram Moolenaar
Problem: The +insert_expand feature is not always available. Solution: Graduate the +insert_expand feature.
2019-08-20patch 8.1.1891: functions used in one file are globalv8.1.1891Bram Moolenaar
Problem: Functions used in one file are global. Solution: Add "static". (Yegappan Lakshmanan, closes #4840)
2019-08-18patch 8.1.1887: the +cmdline_compl feature is not in the tiny versionv8.1.1887Bram Moolenaar
Problem: The +cmdline_compl feature is not in the tiny version. Solution: Graduate the +cmdline_compl feature.