still more miscellaneous color fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2869 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
David Lawrence Ramsey
2005-07-15 01:08:52 +00:00
parent 538dc352c5
commit cb8d845ad7
3 changed files with 13 additions and 9 deletions

View File

@@ -1574,9 +1574,11 @@ int write_file(const char *name, FILE *f_open, bool tmp, int append,
openfile->filename = mallocstrcpy(openfile->filename,
realname);
#ifdef ENABLE_COLOR
/* We might have changed the filename, so update the
* buffer's associated colors, if applicable. */
/* We might have changed the filename, so update the colors
* to account for it, and make sure we're using the updated
* colors, if applicable. */
color_update();
color_init();
/* If color syntaxes are available and turned on, we need to
* call edit_refresh(). */