diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index 97343e468b..a8ac6ab439 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -2446,7 +2446,7 @@ static bool cmdpreview_may_show(CommandLineState *s) CpInfo cpinfo; bool icm_split = *p_icm == 's'; // inccommand=split - buf_T *cmdpreview_buf; + buf_T *cmdpreview_buf = NULL; win_T *cmdpreview_win = NULL; emsg_silent++; // Block error reporting as the command may be incomplete,