aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/autocmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/autocmd.c')
-rw-r--r--src/nvim/autocmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/autocmd.c b/src/nvim/autocmd.c
index 8830be7355..bfeb70dce9 100644
--- a/src/nvim/autocmd.c
+++ b/src/nvim/autocmd.c
@@ -831,7 +831,7 @@ void do_autocmd(char_u *arg_in, int forceit)
// Find the start of the commands.
// Expand <sfile> in it.
if (*cmd != NUL) {
- cmd = expand_sfile(cmd);
+ cmd = (char_u *)expand_sfile((char *)cmd);
if (cmd == NULL) { // some error
return;
}