Mercurial > vim
diff src/fileio.c @ 10086:1de911ef1edf v7.4.2314
commit https://github.com/vim/vim/commit/de653f08805dde14424d417502a0480a6ad292f8
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 3 16:59:06 2016 +0200
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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 03 Sep 2016 17:00:07 +0200 |
parents | 3e410e6e1986 |
children | fb1fde4fcff7 |
line wrap: on
line diff
--- 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;