diff options
author | Ihor Antonov <ngortheone@users.noreply.github.com> | 2019-08-27 16:28:42 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-08-27 22:28:42 +0200 |
commit | 17f768ee9e8f572eece1ebda874e1b90cc0b9422 (patch) | |
tree | 9fac0a16a2d1125234c3d0b01f37c3f749f235f3 /src/nvim/edit.c | |
parent | a851090dec8600b38d54cd65264e4146ad02b1e0 (diff) | |
download | rneovim-17f768ee9e8f572eece1ebda874e1b90cc0b9422.tar.gz rneovim-17f768ee9e8f572eece1ebda874e1b90cc0b9422.tar.bz2 rneovim-17f768ee9e8f572eece1ebda874e1b90cc0b9422.zip |
clang/"null pointer dereference" #10864
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r-- | src/nvim/edit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c index 52efd72797..1d795621e5 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -674,7 +674,8 @@ 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) - || (compl_shown_match->cp_str != NULL + || (compl_shown_match != NULL + && compl_shown_match->cp_str != NULL && (int)STRLEN(compl_shown_match->cp_str) > curwin->w_cursor.col - compl_col))) { ins_compl_addfrommatch(); |