mirror of git://git.sv.gnu.org/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
This commit is contained in:
parent
2d0d60b796
commit
f94b993535
|
@ -290,8 +290,11 @@ CVS code -
|
||||||
- rcfile.c:
|
- rcfile.c:
|
||||||
parse_argument()
|
parse_argument()
|
||||||
- Rename variable ptr_bak to ptr_save, for consistency. (DLR)
|
- Rename variable ptr_bak to ptr_save, for consistency. (DLR)
|
||||||
- Add quotes around invalid string arguments in error messages,
|
- Add double quotes around invalid string arguments in error
|
||||||
for consistency. (DLR)
|
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()
|
parse_syntax()
|
||||||
- Don't generate an error if we find a duplicate syntax name,
|
- Don't generate an error if we find a duplicate syntax name,
|
||||||
since we might be trying to override a syntax in the global
|
since we might be trying to override a syntax in the global
|
||||||
|
|
|
@ -171,7 +171,7 @@ char *parse_argument(char *ptr)
|
||||||
ptr = NULL;
|
ptr = NULL;
|
||||||
else
|
else
|
||||||
*ptr++ = '\0';
|
*ptr++ = '\0';
|
||||||
rcfile_error(N_("Argument \"%s\" has unterminated \""), ptr_save);
|
rcfile_error(N_("Argument '%s' has unterminated \""), ptr_save);
|
||||||
} else {
|
} else {
|
||||||
*last_quote = '\0';
|
*last_quote = '\0';
|
||||||
ptr = last_quote + 1;
|
ptr = last_quote + 1;
|
||||||
|
|
Loading…
Reference in New Issue