diff --git a/ChangeLog b/ChangeLog index 48e409597f3568af5244ebba03dc38f98c7bf39c..0b3851e93a3428b34f66bc61ac1228d842fccdd0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-11-15 Chris Allegretta <chrisa@asty.org> + * winio.c (edit_refresh): Always computer maxsize regardless of whether smooth scrolling + is enabled. Fixes Savannah bug 28024 by Mike Frysinger. + GNU nano 2.1.99pre1 - 2009.11.15 2009-11-14 Chris Allegretta <chrisa@asty.org> * move.c (do_first_line, do_last_line): Just set edit_refresh_needed rather than diff --git a/src/winio.c b/src/winio.c index 1bc8055cb4e58aef76fea3e20b440ebddc74e1d1..96d25fc924f4382ec63c447fc4345dc346510232 100644 --- a/src/winio.c +++ b/src/winio.c @@ -3224,7 +3224,7 @@ void edit_refresh(void) int nlines; /* Figure out what maxrows should really be */ - if (ISSET(SOFTWRAP) && openfile->current->lineno > openfile->edittop->lineno) + if (openfile->current->lineno > openfile->edittop->lineno) compute_maxrows(); if (openfile->current->lineno < openfile->edittop->lineno ||