0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.4318: various comment and indent mistakes, returning wrong zero

Problem:    Various comment and indent mistakes, returning wrong zero.
Solution:   Fix the mistakes.  Return NULL instead of FAIL.
This commit is contained in:
Bram Moolenaar
2022-02-07 13:56:44 +00:00
parent 63ff72aab9
commit 54969f4ef5
6 changed files with 14 additions and 11 deletions

View File

@@ -1420,7 +1420,7 @@ compile_catch(char_u *arg, cctx_T *cctx UNUSED)
{
semsg(_(e_separator_mismatch_str), p);
vim_free(tofree);
return FAIL;
return NULL;
}
if (tofree == NULL)
len = (int)(end - (p + 1));
@@ -1430,9 +1430,9 @@ compile_catch(char_u *arg, cctx_T *cctx UNUSED)
vim_free(tofree);
p += len + 2 + dropped;
if (pat == NULL)
return FAIL;
return NULL;
if (generate_PUSHS(cctx, &pat) == FAIL)
return FAIL;
return NULL;
if (generate_COMPARE(cctx, EXPR_MATCH, FALSE) == FAIL)
return NULL;