diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c index 9c8872d2be..e3c338c500 100644 --- a/src/nvim/getchar.c +++ b/src/nvim/getchar.c @@ -290,7 +290,7 @@ static void delete_buff_tail(buffheader_T *buf, int slen) { int len; - if (buf->bh_curr == NULL || buf->bh_curr->b_str == NULL) { + if (buf->bh_curr == NULL) { return; // nothing to delete } len = (int)STRLEN(buf->bh_curr->b_str);