more miscellaneous breakage fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2863 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
@@ -230,7 +230,15 @@ void open_buffer(const char *filename)
|
|||||||
/* 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)
|
||||||
{
|
{
|
||||||
|
/* Update the titlebar, since the filename may have changed. */
|
||||||
titlebar(NULL);
|
titlebar(NULL);
|
||||||
|
|
||||||
|
#ifdef ENABLE_COLOR
|
||||||
|
/* Update the buffer's associated colors, if applicable. */
|
||||||
|
color_update();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Update the edit window. */
|
||||||
edit_refresh();
|
edit_refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -191,7 +191,7 @@ void renumber(filestruct *fileptr)
|
|||||||
assert(fileptr != fileptr->next);
|
assert(fileptr != fileptr->next);
|
||||||
|
|
||||||
for (; fileptr != NULL; fileptr = fileptr->next)
|
for (; fileptr != NULL; fileptr = fileptr->next)
|
||||||
fileptr->lineno = ++line;
|
fileptr->lineno = line++;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Partition a filestruct so it begins at (top, top_x) and ends at (bot,
|
/* Partition a filestruct so it begins at (top, top_x) and ends at (bot,
|
||||||
|
|||||||
@@ -3510,7 +3510,7 @@ int need_vertical_update(size_t old_pww)
|
|||||||
* two is the current line at either time. */
|
* two is the current line at either time. */
|
||||||
void edit_scroll(updown direction, int nlines)
|
void edit_scroll(updown direction, int nlines)
|
||||||
{
|
{
|
||||||
filestruct *foo;
|
const filestruct *foo;
|
||||||
int i, scroll_rows = 0;
|
int i, scroll_rows = 0;
|
||||||
|
|
||||||
/* Scrolling less than one line or more than editwinrows lines is
|
/* Scrolling less than one line or more than editwinrows lines is
|
||||||
|
|||||||
Reference in New Issue
Block a user