Commit c82f0388 authored by Chris Allegretta's avatar Chris Allegretta
Browse files

Part 2 of David's fixes for David's bug 71 fix


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4440 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Showing with 2 additions and 10 deletions
+2 -10
...@@ -3156,11 +3156,7 @@ void edit_redraw(filestruct *old_current, size_t pww_save) ...@@ -3156,11 +3156,7 @@ void edit_redraw(filestruct *old_current, size_t pww_save)
/* Put edittop in range of current, get the difference in lines /* Put edittop in range of current, get the difference in lines
* between the original edittop and the current edittop, and * between the original edittop and the current edittop, and
* then restore the original edittop. */ * then restore the original edittop. */
edit_update( edit_update(NONE);
#ifndef NANO_TINY
ISSET(SMOOTH_SCROLL) ? NONE :
#endif
CENTER);
nlines = openfile->edittop->lineno - old_edittop->lineno; nlines = openfile->edittop->lineno - old_edittop->lineno;
...@@ -3239,11 +3235,7 @@ void edit_refresh(void) ...@@ -3239,11 +3235,7 @@ void edit_refresh(void)
/* Put the top line of the edit window in range of the current /* Put the top line of the edit window in range of the current
* line. */ * line. */
edit_update( edit_update(NONE);
#ifndef NANO_TINY
ISSET(SMOOTH_SCROLL) ? NONE :
#endif
CENTER);
} }
foo = openfile->edittop; foo = openfile->edittop;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment