aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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, ',');