mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 01:08:20 +00:00
vim-patch:7.4.2314
Problem: No error when deleting an augroup while it's the current one.
Solution: Disallow deleting an augroup when it's the current one.
de653f0880
This commit is contained in:
@@ -5581,6 +5581,8 @@ static void au_del_group(char_u *name)
|
||||
i = au_find_group(name);
|
||||
if (i == AUGROUP_ERROR) { // the group doesn't exist
|
||||
EMSG2(_("E367: No such group: \"%s\""), name);
|
||||
} else if (i == current_augroup) {
|
||||
EMSG(_("E936: Cannot delete the current group"));
|
||||
} else {
|
||||
event_T event;
|
||||
AutoPat *ap;
|
||||
|
Reference in New Issue
Block a user