aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-09-30 14:48:29 +0200
committerGitHub <noreply@github.com>2018-09-30 14:48:29 +0200
commitc6d36b97bac0df86c1120af323db1b577dc90629 (patch)
tree12d8c060ba3d23e5470bd4cbb8a7ecea1ff4f938 /src/nvim/ex_docmd.c
parent6e146d413267de044a1f9f0bbb0290b5387e631c (diff)
parent9dcd5bd9c5272e28f7f52f579b74381e46ce827d (diff)
downloadrneovim-c6d36b97bac0df86c1120af323db1b577dc90629.tar.gz
rneovim-c6d36b97bac0df86c1120af323db1b577dc90629.tar.bz2
rneovim-c6d36b97bac0df86c1120af323db1b577dc90629.zip
Merge #9067 from janlazo/vim-8.0.1485
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r--src/nvim/ex_docmd.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index ad51de46ee..f8d4e7d980 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -6536,6 +6536,13 @@ void alist_expand(int *fnum_list, int fnum_len)
void alist_set(alist_T *al, int count, char_u **files, int use_curbuf, int *fnum_list, int fnum_len)
{
int i;
+ static int recursive = 0;
+
+ if (recursive) {
+ EMSG(_(e_au_recursive));
+ return;
+ }
+ recursive++;
alist_clear(al);
ga_grow(&al->al_ga, count);
@@ -6560,8 +6567,10 @@ void alist_set(alist_T *al, int count, char_u **files, int use_curbuf, int *fnum
xfree(files);
}
- if (al == &global_alist)
- arg_had_last = FALSE;
+ if (al == &global_alist) {
+ arg_had_last = false;
+ }
+ recursive--;
}
/*