diff options
Diffstat (limited to 'src/edit.c')
-rw-r--r-- | src/edit.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/edit.c b/src/edit.c index fb60fb25c1..acb05f6588 100644 --- a/src/edit.c +++ b/src/edit.c @@ -4345,8 +4345,6 @@ static int ins_complete(int c) /* we need up to 2 extra chars for the prefix */ compl_pattern = alloc(quote_meta(NULL, line + compl_col, compl_length) + 2); - if (compl_pattern == NULL) - return FAIL; if (!vim_iswordp(line + compl_col) || (compl_col > 0 && ( @@ -4392,16 +4390,12 @@ static int ins_complete(int c) * alloc(7) is enough -- Acevedo */ compl_pattern = alloc(7); - if (compl_pattern == NULL) - return FAIL; STRCPY((char *)compl_pattern, "\\<"); (void)quote_meta(compl_pattern + 2, line + compl_col, 1); STRCAT((char *)compl_pattern, "\\k"); } else { compl_pattern = alloc(quote_meta(NULL, line + compl_col, compl_length) + 2); - if (compl_pattern == NULL) - return FAIL; STRCPY((char *)compl_pattern, "\\<"); (void)quote_meta(compl_pattern + 2, line + compl_col, compl_length); |