aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nvim/getchar.c2
1 files changed, 1 insertions, 1 deletions
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);