diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-09-03 16:59:06 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-09-03 16:59:06 +0200 |
commit | de653f08805dde14424d417502a0480a6ad292f8 (patch) | |
tree | 455032d1febac1d084c69e3ca2cc7bb08b8def3b /src/fileio.c | |
parent | b62cc36a600e2e1e5a1d1d484fef89898c847c4c (diff) | |
download | vim-git-de653f08805dde14424d417502a0480a6ad292f8.tar.gz |
patch 7.4.2314v7.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.
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fileio.c b/src/fileio.c index 6d5ed19d1..ea1f338f5 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -8017,6 +8017,8 @@ 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; |