aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-09-11 22:29:50 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-09-11 22:29:50 -0400
commite3c67755b84379348abe5fa4aa94ff5830649a17 (patch)
treee2f7a35939877c22edb8034d3c1792b828612aa8
parent6508215b5cde0b1e555d1da6a7cf61f3b1095a48 (diff)
downloadrneovim-e3c67755b84379348abe5fa4aa94ff5830649a17.tar.gz
rneovim-e3c67755b84379348abe5fa4aa94ff5830649a17.tar.bz2
rneovim-e3c67755b84379348abe5fa4aa94ff5830649a17.zip
fixup! cursor_shape: check if modep is nonnull
-rw-r--r--src/nvim/cursor_shape.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/cursor_shape.c b/src/nvim/cursor_shape.c
index 96ff1e5631..9c8128db4f 100644
--- a/src/nvim/cursor_shape.c
+++ b/src/nvim/cursor_shape.c
@@ -104,7 +104,7 @@ char_u *parse_shape_opt(int what)
if (*p_guicursor == NUL) {
modep = (char_u *)"a:block-blinkon0";
}
- while (*modep != NUL) {
+ while (modep != NULL && *modep != NUL) {
colonp = vim_strchr(modep, ':');
commap = vim_strchr(modep, ',');