From: David Lawrence Ramsey Date: Thu, 8 Jun 2006 02:13:37 +0000 (+0000) Subject: per Benno Schulenberg's patch, add single quotes around the invalid X-Git-Tag: v1.3.12~47 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f94b99353565ffc58a70791d6ba7070858d34162;p=nano.git per Benno Schulenberg's patch, add single quotes around the invalid string argument in the error message about unterminated strings, to avoid confusion git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3633 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index 5e6dc7aa..3655a03d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -290,8 +290,11 @@ CVS code - - rcfile.c: parse_argument() - Rename variable ptr_bak to ptr_save, for consistency. (DLR) - - Add quotes around invalid string arguments in error messages, - for consistency. (DLR) + - Add double quotes around invalid string arguments in error + messages, for consistency. (DLR) + - Add single quotes around the invalid string argument in the + error message about unterminated strings, to avoid confusion. + (Benno Schulenberg) parse_syntax() - Don't generate an error if we find a duplicate syntax name, since we might be trying to override a syntax in the global diff --git a/src/rcfile.c b/src/rcfile.c index c22aca37..e652002d 100644 --- a/src/rcfile.c +++ b/src/rcfile.c @@ -171,7 +171,7 @@ char *parse_argument(char *ptr) ptr = NULL; else *ptr++ = '\0'; - rcfile_error(N_("Argument \"%s\" has unterminated \""), ptr_save); + rcfile_error(N_("Argument '%s' has unterminated \""), ptr_save); } else { *last_quote = '\0'; ptr = last_quote + 1;