diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-08-15 10:18:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-15 10:18:22 +0200 |
commit | 26506f14bc653a555b32e553bf458efc6402ed0b (patch) | |
tree | ab38a031422332883ecf294238714996cc412de2 /src/nvim/quickfix.c | |
parent | f767cee10002afc360af1aad209676d08cc3a758 (diff) | |
parent | be1525d3c95db99d50c1538e73dfcbf8a4f83782 (diff) | |
download | rneovim-26506f14bc653a555b32e553bf458efc6402ed0b.tar.gz rneovim-26506f14bc653a555b32e553bf458efc6402ed0b.tar.bz2 rneovim-26506f14bc653a555b32e553bf458efc6402ed0b.zip |
Merge #8856 from janlazo/vim-8.0.1209
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r-- | src/nvim/quickfix.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 4308c4e87e..a19e98725a 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -4541,11 +4541,6 @@ void ex_cbuffer(exarg_T *eap) qf_info_T *qi = &ql_info; const char *au_name = NULL; - if (eap->cmdidx == CMD_lbuffer || eap->cmdidx == CMD_lgetbuffer - || eap->cmdidx == CMD_laddbuffer) { - qi = ll_get_or_alloc_list(curwin); - } - switch (eap->cmdidx) { case CMD_cbuffer: au_name = "cbuffer"; @@ -4576,6 +4571,13 @@ void ex_cbuffer(exarg_T *eap) } } + // Must come after autocommands. + if (eap->cmdidx == CMD_lbuffer + || eap->cmdidx == CMD_lgetbuffer + || eap->cmdidx == CMD_laddbuffer) { + qi = ll_get_or_alloc_list(curwin); + } + if (*eap->arg == NUL) buf = curbuf; else if (*skipwhite(skipdigits(eap->arg)) == NUL) |