- winio.c:edit_refresh() - Fix cursor being above as well as below the current screen (David Benbennick)

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1396 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
Chris Allegretta 2003-01-26 19:47:10 +00:00
parent 77e726d518
commit 63d0b48d5b
2 changed files with 5 additions and 1 deletions

View File

@ -33,6 +33,9 @@ CVS Code -
do_replace_loop() do_replace_loop()
- Fix various bugs having to do with replace string length - Fix various bugs having to do with replace string length
and positioning (David Benbennick). and positioning (David Benbennick).
edit_refresh()
- Fix cursor being above as well as below the current screen
(David Benbennick).
- winio.c: - winio.c:
bottombars() bottombars()
- Change strcpy of gettext() "Up" string to strncpy of max - Change strcpy of gettext() "Up" string to strncpy of max

View File

@ -1093,7 +1093,8 @@ void edit_refresh(void)
if (edittop == NULL) if (edittop == NULL)
edittop = current; edittop = current;
if (current->lineno >= edittop->lineno + editwinrows) if (current->lineno < edittop->lineno ||
current->lineno >= edittop->lineno + editwinrows)
/* Note that edit_update() changes edittop so that /* Note that edit_update() changes edittop so that
* current->lineno = edittop->lineno + editwinrows / 2. Thus * current->lineno = edittop->lineno + editwinrows / 2. Thus
* when it then calls edit_refresh(), there is no danger of * when it then calls edit_refresh(), there is no danger of