*really* fix more breakage
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2853 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
e5c7e928c9
commit
0c4ca3509f
12
src/files.c
12
src/files.c
|
@ -215,20 +215,16 @@ void open_buffer(const char *filename)
|
||||||
* to the first line of the buffer. */
|
* to the first line of the buffer. */
|
||||||
if (rc != -1 && new_buffer)
|
if (rc != -1 && new_buffer)
|
||||||
openfile->current = openfile->fileage;
|
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. */
|
/* Update the screen to account for the current buffer. */
|
||||||
void display_buffer(void)
|
void display_buffer(void)
|
||||||
{
|
{
|
||||||
titlebar(NULL);
|
titlebar(NULL);
|
||||||
|
#ifdef ENABLE_COLOR
|
||||||
|
/* Update the buffer's associated colors, if applicable. */
|
||||||
|
update_color();
|
||||||
|
#endif
|
||||||
edit_refresh();
|
edit_refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue