Skip to content

Commit 9b0c5c2

Browse files
committed
patch 8.1.0090: "..." used inconsistently in a message
Problem: "..." used inconsistently in a message. Solution: Define the message with " ..." once. (hint by Ken Takata)
1 parent a15b0a9 commit 9b0c5c2

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

src/regexp_nfa.c

+7-6
Original file line numberDiff line numberDiff line change
@@ -2672,6 +2672,7 @@ nfa_set_code(int c)
26722672

26732673
#ifdef ENABLE_LOG
26742674
static FILE *log_fd;
2675+
static char_u e_log_open_failed[] = N_("Could not open temporary log file for writing, displaying on stderr... ");
26752676

26762677
/*
26772678
* Print the postfix notation of the current regexp.
@@ -2687,7 +2688,7 @@ nfa_postfix_dump(char_u *expr, int retval)
26872688
{
26882689
fprintf(f, "\n-------------------------\n");
26892690
if (retval == FAIL)
2690-
fprintf(f, ">>> NFA engine failed ... \n");
2691+
fprintf(f, ">>> NFA engine failed... \n");
26912692
else if (retval == OK)
26922693
fprintf(f, ">>> NFA engine succeeded !\n");
26932694
fprintf(f, "Regexp: \"%s\"\nPostfix notation (char): \"", expr);
@@ -5270,7 +5271,7 @@ recursive_regmatch(
52705271
}
52715272
else
52725273
{
5273-
EMSG(_("Could not open temporary log file for writing, displaying on stderr... "));
5274+
EMSG(_(e_log_open_failed));
52745275
log_fd = stderr;
52755276
}
52765277
#endif
@@ -5620,7 +5621,7 @@ nfa_regmatch(
56205621
}
56215622
else
56225623
{
5623-
EMSG(_("Could not open temporary log file for writing, displaying on stderr ... "));
5624+
EMSG(_(e_log_open_failed));
56245625
log_fd = stderr;
56255626
}
56265627
#endif
@@ -5704,7 +5705,7 @@ nfa_regmatch(
57045705
#ifdef ENABLE_LOG
57055706
fprintf(log_fd, "------------------------------------------\n");
57065707
fprintf(log_fd, ">>> Reginput is \"%s\"\n", reginput);
5707-
fprintf(log_fd, ">>> Advanced one character ... Current char is %c (code %d) \n", curc, (int)curc);
5708+
fprintf(log_fd, ">>> Advanced one character... Current char is %c (code %d) \n", curc, (int)curc);
57085709
fprintf(log_fd, ">>> Thislist has %d states available: ", thislist->n);
57095710
{
57105711
int i;
@@ -5757,7 +5758,7 @@ nfa_regmatch(
57575758
else
57585759
col = (int)(t->subs.norm.list.line[0].start - regline);
57595760
nfa_set_code(t->state->c);
5760-
fprintf(log_fd, "(%d) char %d %s (start col %d)%s ... \n",
5761+
fprintf(log_fd, "(%d) char %d %s (start col %d)%s... \n",
57615762
abs(t->state->id), (int)t->state->c, code, col,
57625763
pim_info(&t->pim));
57635764
}
@@ -7282,7 +7283,7 @@ nfa_regcomp(char_u *expr, int re_flags)
72827283

72837284
if (f != NULL)
72847285
{
7285-
fprintf(f, "\n*****************************\n\n\n\n\tCompiling regexp \"%s\" ... hold on !\n", expr);
7286+
fprintf(f, "\n*****************************\n\n\n\n\tCompiling regexp \"%s\"... hold on !\n", expr);
72867287
fclose(f);
72877288
}
72887289
}

src/version.c

+2
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,8 @@ static char *(features[]) =
761761

762762
static int included_patches[] =
763763
{ /* Add new patch number below this line */
764+
/**/
765+
90,
764766
/**/
765767
89,
766768
/**/

0 commit comments

Comments
 (0)