0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 9.0.1576: users may not know what to do with an internal error

Problem:    Users may not know what to do with an internal error.
Solution:   Add a translated message with instructions.
This commit is contained in:
Bram Moolenaar
2023-05-24 21:02:24 +01:00
parent a8490a4952
commit 097c5370ea
15 changed files with 81 additions and 69 deletions

View File

@@ -1401,7 +1401,7 @@ nfa_regatom(void)
rc_did_emsg = TRUE;
return FAIL;
}
siemsg("INTERNAL: Unknown character class char: %d", c);
siemsg("Unknown character class char: %d", c);
return FAIL;
}
@@ -6905,7 +6905,7 @@ nfa_regmatch(
#ifdef DEBUG
if (c < 0)
siemsg("INTERNAL: Negative state char: %ld", (long)c);
siemsg("Negative state char: %ld", (long)c);
#endif
result = (c == curc);
@@ -7196,9 +7196,9 @@ nfa_regtry(
if (f != NULL)
{
fprintf(f, "\n\n\t=======================================================\n");
#ifdef DEBUG
# ifdef DEBUG
fprintf(f, "\tRegexp is \"%s\"\n", nfa_regengine.expr);
#endif
# endif
fprintf(f, "\tInput text is \"%s\" \n", rex.input);
fprintf(f, "\t=======================================================\n\n");
nfa_print_state(f, start);