aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds2.c
diff options
context:
space:
mode:
authorGregory Anders <8965202+gpanders@users.noreply.github.com>2022-05-04 10:23:21 -0600
committerGitHub <noreply@github.com>2022-05-04 10:23:21 -0600
commitf98149d87a651f457affa91ccf12f9337da84e78 (patch)
treea44e1d1715323e43e1a6440fe95d2268778e69b8 /src/nvim/ex_cmds2.c
parent4f17e7e1c38e53eb214fd85cde1cbbe332e86498 (diff)
parentf08477789fe241c3868d3856643c78da0760cd19 (diff)
downloadrneovim-f98149d87a651f457affa91ccf12f9337da84e78.tar.gz
rneovim-f98149d87a651f457affa91ccf12f9337da84e78.tar.bz2
rneovim-f98149d87a651f457affa91ccf12f9337da84e78.zip
Merge pull request #18413 from dundargoc/refactor/remove-char_u-autocmd
refactor/remove char u autocmd
Diffstat (limited to 'src/nvim/ex_cmds2.c')
-rw-r--r--src/nvim/ex_cmds2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c
index e2664e427c..39c5670e93 100644
--- a/src/nvim/ex_cmds2.c
+++ b/src/nvim/ex_cmds2.c
@@ -1295,7 +1295,7 @@ void ex_listdo(exarg_T *eap)
if (eap->cmdidx != CMD_windo && eap->cmdidx != CMD_tabdo) {
// Don't do syntax HL autocommands. Skipping the syntax file is a
// great speed improvement.
- save_ei = au_event_disable(",Syntax");
+ save_ei = (char_u *)au_event_disable(",Syntax");
FOR_ALL_BUFFERS(buf) {
buf->b_flags &= ~BF_SYN_SET;
@@ -1508,7 +1508,7 @@ void ex_listdo(exarg_T *eap)
buf_T *bnext;
aco_save_T aco;
- au_event_restore(save_ei);
+ au_event_restore((char *)save_ei);
for (buf_T *buf = firstbuf; buf != NULL; buf = bnext) {
bnext = buf->b_next;