color_to_short()), and parse_colors(). (DLR)
- Change color handling to save only the regex strings
constantly, and to actually compile them on an as-needed
- basis. Changes to update_color() (renamed color_update()) and
+ basis. Changes to update_color() and
thanks_for_all_the_fish(). (Brand Huntsman and DLR)
- Various other color fixes. Handle unspecified foreground
- colors properly, and don't bother doing complete refreshes of
- the screen when color support is enabled if there's no regex
- associated with the current file. Changes to do_colorinit()
- (renamed color_init()), do_input(), and do_output(). (DLR)
+ colors properly, don't automatically reinitialize the
+ displayed colors every time we update the current buffer's
+ colors (since the buffer may not be displayed immediately),
+ and don't bother doing complete refreshes of the screen when
+ color support is enabled if there's no regex associated with
+ the current file. Changes to do_colorinit() (renamed
+ color_init()), update_color() (renamed color_update()),
+ write_file(), do_input(), and do_output(). (DLR)
- files.c:
open_file()
- Assert that filename isn't NULL, and don't do anything special
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(). */