Telling the user on the statusbar when a syntax name given on the

command line does not exist.  This fixes Savannah bug #46503.


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5436 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
Benno Schulenberg 2015-11-24 11:42:19 +00:00
parent 9dc47fdfe5
commit 9c821dfe2e
2 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,8 @@
2015-11-24 Benno Schulenberg <bensberg@justemail.net> 2015-11-24 Benno Schulenberg <bensberg@justemail.net>
* doc/syntax/makefile.nanorc: Also recognize the extensions .make and * doc/syntax/makefile.nanorc: Also recognize the extensions .make and
.mk as Makefiles. Suggested by Emmanuel Bourg in Debian bug #804845. .mk as Makefiles. Suggested by Emmanuel Bourg in Debian bug #804845.
* src/color.c (color_update): Tell the user when a syntax name given
on the command line does not exist. This fixes Savannah bug #46503.
2015-11-23 Benno Schulenberg <bensberg@justemail.net> 2015-11-23 Benno Schulenberg <bensberg@justemail.net>
* src/nano.c (main), src/winio.c (parse_kbinput): Make Ctrl+Left and * src/nano.c (main), src/winio.c (parse_kbinput): Make Ctrl+Left and

View File

@ -180,6 +180,9 @@ void color_update(void)
if (openfile->colorstrings != NULL) if (openfile->colorstrings != NULL)
break; break;
} }
if (openfile->colorstrings == NULL)
statusbar(_("Unknown syntax name: %s"), syntaxstr);
} }
/* If we didn't specify a syntax override string, or if we did and /* If we didn't specify a syntax override string, or if we did and