mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
clang/"null pointer dereference": insert_execute
This commit is contained in:
parent
e32c9f888b
commit
cf4e14c746
@ -667,8 +667,9 @@ static int insert_execute(VimState *state, int key)
|
||||
// there is nothing to add, CTRL-L works like CTRL-P then.
|
||||
if (s->c == Ctrl_L
|
||||
&& (!CTRL_X_MODE_LINE_OR_EVAL(ctrl_x_mode)
|
||||
|| (int)STRLEN(compl_shown_match->cp_str)
|
||||
> curwin->w_cursor.col - compl_col)) {
|
||||
|| (compl_shown_match->cp_str != NULL
|
||||
&& (int)STRLEN(compl_shown_match->cp_str)
|
||||
> curwin->w_cursor.col - compl_col))) {
|
||||
ins_compl_addfrommatch();
|
||||
return 1; // continue
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user