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
Bram Moolenaar
bdf931c25b
patch 8.2.1783: try-catch test fails
...
Problem: Try-catch test fails.
Solution: Don't call win_enter(), only call enterering_window().
2020-10-01 22:37:40 +02:00
Bram Moolenaar
4537bcc889
patch 8.2.1781: writing to prompt buffer interferes with insert mode
...
Problem: Writing to prompt buffer interferes with insert mode.
Solution: Use win_enter() instead of just setting "curwin". (Ben Jackson,
closes #7035 )
2020-10-01 20:03:04 +02:00
Bram Moolenaar
66250c932e
patch 8.2.1491: Vim9: crash when compiling heredoc lines start with comment
...
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-08-20 15:02:42 +02:00
Bram Moolenaar
5055c56cfb
patch 8.2.0965: has_funcundefined() is not used
...
Problem: Has_funcundefined() is not used.
Solution: Delete the function. (Dominique Pellé, closes #6242 )
2020-06-12 22:15:31 +02:00
Bram Moolenaar
be5ee8686a
patch 8.2.0952: no simple way to interrupt Vim
...
Problem: No simple way to interrupt Vim.
Solution: Add the SigUSR1 autocommand, triggered by SIGUSR1. (Jacob Hayes,
closes #1718 )
2020-06-10 20:56:58 +02:00
Bram Moolenaar
df44a27b53
patch 8.2.0928: many type casts are used for vim_strnsave()
...
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-06-07 20:49:05 +02:00
Bram Moolenaar
aeea72151c
patch 8.2.0500: using the same loop in many places
...
Problem: Using the same loop in many places.
Solution: Define more FOR_ALL macros. (Yegappan Lakshmanan, closes #5339 )
2020-04-02 18:50:46 +02:00
Bram Moolenaar
3f169ce17e
patch 8.2.0158: triggering CompleteDone earlier is not backwards compatible
...
Problem: Triggering CompleteDone earlier is not backwards compatible.
(Daniel Hahler)
Solution: Add CompleteDonePre instead.
2020-01-26 22:43:31 +01:00
Bram Moolenaar
e31ee86859
patch 8.2.0098: exe stack length can be wrong without being detected
...
Problem: Exe stack length can be wrong without being detected.
Solution: Add a check when ABORT_ON_INTERNAL_ERROR is defined.
2020-01-07 20:59:34 +01:00
Bram Moolenaar
1a47ae32cd
patch 8.2.0056: execution stack is incomplete and inefficient
...
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-12-29 23:04:25 +01:00
Bram Moolenaar
c667da5185
patch 8.1.2368: using old C style comments
...
Problem: Using old C style comments.
Solution: Use // comments where appropriate.
2019-11-30 20:52:27 +01:00
Bram Moolenaar
32aa10203b
patch 8.1.2243: typos in comments
...
Problem: Typos in comments.
Solution: Fix the typos. (Dominique Pelle, closes #5160 ) Also adjust
formatting a bit.
2019-11-02 22:54:41 +01:00
Bram Moolenaar
28ed4dfe1f
patch 8.1.2219: no autocommand for open window with terminal
...
Problem: No autocommand for open window with terminal.
Solution: Add TerminalWinOpen. (Christian Brabandt)
2019-10-26 16:21:40 +02:00
Bram Moolenaar
69198cb8c0
patch 8.1.2046: SafeState may be triggered at the wrong moment
...
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-16 21:58:13 +02:00
Bram Moolenaar
8aeec40207
patch 8.1.2044: no easy way to process postponed work
...
Problem: No easy way to process postponed work. (Paul Jolly)
Solution: Add the SafeState autocommand event.
2019-09-15 23:02:04 +02:00
Bram Moolenaar
e2c453d38f
patch 8.1.1901: the +insert_expand feature is not always available
...
Problem: The +insert_expand feature is not always available.
Solution: Graduate the +insert_expand feature.
2019-08-21 14:37:09 +02:00
Bram Moolenaar
5843f5f37b
patch 8.1.1891: functions used in one file are global
...
Problem: Functions used in one file are global.
Solution: Add "static". (Yegappan Lakshmanan, closes #4840 )
2019-08-20 20:13:45 +02:00
Bram Moolenaar
0a52df50a0
patch 8.1.1887: the +cmdline_compl feature is not in the tiny version
...
Problem: The +cmdline_compl feature is not in the tiny version.
Solution: Graduate the +cmdline_compl feature.
2019-08-18 22:26:31 +02:00
Bram Moolenaar
df70775555
patch 8.1.1873: cannot build tiny version
...
Problem: Cannot build tiny version.
Solution: Remove #ifdef for is_autocmd_blocked().
2019-08-17 17:50:07 +02:00
Bram Moolenaar
6cd57d4466
patch 8.1.1805: au_did_filetype is declared twice
...
Problem: Au_did_filetype is declared twice.
Solution: Remove it from autocmd.c. (closes #4767 )
2019-08-03 23:08:14 +02:00
Bram Moolenaar
e96a2498f9
patch 8.1.1588: in :let-heredoc line continuation is recognized
...
Problem: In :let-heredoc line continuation is recognized.
Solution: Do not consume line continuation. (Ozaki Kiichi, closes #4580 )
2019-06-25 04:12:16 +02:00
Bram Moolenaar
6116b6abb1
patch 8.1.1454: build failure without the conceal feature
...
Problem: Build failure without the conceal feature.
Solution: Remove #ifdef.
2019-06-02 19:02:27 +02:00
Bram Moolenaar
89adc3a137
patch 8.1.1425: win_execute() does not set window pointers properly
...
Problem: Win_execute() does not set window pointers properly.
Solution: Use switch_win_noblock(). Also execute autocommands in a popup
window.
2019-05-30 17:29:40 +02:00
Bram Moolenaar
c799fe206e
patch 8.1.1414: alloc() returning "char_u *" causes a lot of type casts
...
Problem: Alloc() returning "char_u *" causes a lot of type casts.
Solution: Have it return "void *". (Mike Williams) Define ALLOC_ONE() to
check the simple allocations.
2019-05-28 23:08:19 +02:00
Bram Moolenaar
4d784b21d1
patch 8.1.1391: no popup window support
...
Problem: No popup window support.
Solution: Add initial code for popup windows. Add the 'wincolor' option.
2019-05-25 19:51:39 +02:00
Bram Moolenaar
964b3746b9
patch 8.1.1384: using "int" for alloc() often results in compiler warnings
...
Problem: Using "int" for alloc() often results in compiler warnings.
Solution: Use "size_t" and remove type casts. Remove alloc_check(), Vim
only works with 32 bit ints anyway.
2019-05-24 18:54:09 +02:00
Bram Moolenaar
a68e595909
patch 8.1.1205: a BufReadPre autocommand may cause the cursor to move
...
Problem: A BufReadPre autocommand may cause the cursor to move.
Solution: Restore the cursor position after executing the autocommand,
unless the autocommand moved it. (Christian Brabandt,
closes #4302 , closes #4294 )
2019-04-25 22:22:01 +02:00
Bram Moolenaar
d7f246c68c
patch 8.1.1138: plugins don't get notified when the popup menu changes
...
Problem: Plugins don't get notified when the popup menu changes.
Solution: Add the CompleteChanged event. (Andy Massimino. closes #4176 )
2019-04-08 18:15:41 +02:00
Bram Moolenaar
8f4aeb5572
patch 8.1.1115: cannot build with older C compiler
...
Problem: Cannot build with older C compiler.
Solution: Move variable declaration to start of block.
2019-04-04 15:40:56 +02:00
Bram Moolenaar
eb93f3f0e2
patch 8.1.1113: making an autocommand trigger once is not so easy
...
Problem: Making an autocommand trigger once is not so easy.
Solution: Add the ++once argument. Also add ++nested as an alias for
"nested". (Justin M. Keyes, closes #4100 )
2019-04-04 15:04:56 +02:00
Bram Moolenaar
abab0b0fdd
patch 8.1.1086: too many curly braces
...
Problem: Too many curly braces.
Solution: Remove curly braces where they are not needed. (Hirohito Higashi,
closes #3982 )
2019-03-30 18:47:01 +01:00
Bram Moolenaar
3e460fd8b7
patch 8.1.0825: code for autocommands is mixed with file I/O code
...
Problem: Code for autocommands is mixed with file I/O code.
Solution: Move autocommand code to a separate file. (Yegappan Lakshmanan,
closes #3863 )
2019-01-26 16:21:07 +01:00