From: David Lawrence Ramsey Date: Tue, 12 Jul 2005 23:25:00 +0000 (+0000) Subject: *really* fix more breakage X-Git-Tag: v1.3.9~193 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=0c4ca3509fb88da5248dfae8d2604a3513e5dfb4;p=nano.git *really* fix more breakage git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2853 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/src/files.c b/src/files.c index c99fcfc6..98550957 100644 --- a/src/files.c +++ b/src/files.c @@ -215,21 +215,17 @@ void open_buffer(const char *filename) * to the first line of the buffer. */ if (rc != -1 && new_buffer) openfile->current = openfile->fileage; - -#ifdef ENABLE_COLOR - /* If we're loading into a new buffer, update the buffer's - * associated colors, if applicable. */ - if (new_buffer) - update_color(); -#endif - } /* Update the screen to account for the current buffer. */ void display_buffer(void) { - titlebar(NULL); - edit_refresh(); + titlebar(NULL); +#ifdef ENABLE_COLOR + /* Update the buffer's associated colors, if applicable. */ + update_color(); +#endif + edit_refresh(); } #ifdef ENABLE_MULTIBUFFER