diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-02-09 17:50:28 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-02-09 17:50:28 +0100 |
commit | 9e33efd1523b85a70533930dd43a26925a2b648c (patch) | |
tree | d8ebb4bd59434d19786961cff90069d352bf2dd7 /src/globals.h | |
parent | a15ef4588c057da87f64be5b17aef35aaead8ac8 (diff) | |
download | vim-git-9e33efd1523b85a70533930dd43a26925a2b648c.tar.gz |
patch 8.0.1485: weird autocmd may cause arglist to be changed recursivelyv8.0.1485
Problem: Weird autocmd may cause arglist to be changed recursively.
Solution: Prevent recursively changing the argument list. (Christian
Brabandt, closes #2472)
Diffstat (limited to 'src/globals.h')
-rw-r--r-- | src/globals.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/globals.h b/src/globals.h index 737812cdd..943bb3130 100644 --- a/src/globals.h +++ b/src/globals.h @@ -1594,6 +1594,9 @@ EXTERN char_u e_notset[] INIT(= N_("E764: Option '%s' is not set")); EXTERN char_u e_invalidreg[] INIT(= N_("E850: Invalid register name")); #endif EXTERN char_u e_dirnotf[] INIT(= N_("E919: Directory not found in '%s': \"%s\"")); +#ifdef FEAT_AUTOCMD +EXTERN char_u e_au_recursive[] INIT(= N_("E952: Autocommand caused recursive behavior")); +#endif #ifdef FEAT_GUI_MAC EXTERN short disallow_gui INIT(= FALSE); |