Commit 4aece064 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

remove snippet of edit_update() that's redundant now that findnextstr()

maintains current_y properly


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1921 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 2 additions and 10 deletions
+2 -10
...@@ -60,10 +60,8 @@ CVS code - ...@@ -60,10 +60,8 @@ CVS code -
- Simplify so as not to require the fileptr parameter anymore, - Simplify so as not to require the fileptr parameter anymore,
since it's set to current in all calls. (DLR) since it's set to current in all calls. (DLR)
- Add comments better explaining what the update actually does, - Add comments better explaining what the update actually does,
avoid an infinite loop when location is NONE and current_y is and avoid an infinite loop when location is NONE and current_y
greater than (editwinrows - 1), and make sure that the bottom is greater than (editwinrows - 1). (DLR)
line of the file is at the bottom line of the screen if it's
onscreen and location is NONE. (DLR)
do_yesno() do_yesno()
- Don't bother assigning the value of get_mouseinput() to - Don't bother assigning the value of get_mouseinput() to
anything. Since allow_shortcuts is FALSE, its return value anything. Since allow_shortcuts is FALSE, its return value
......
...@@ -2955,12 +2955,6 @@ void edit_update(topmidnone location) ...@@ -2955,12 +2955,6 @@ void edit_update(topmidnone location)
/* Limit goal to (editwinrows - 1) lines maximum. */ /* Limit goal to (editwinrows - 1) lines maximum. */
if (goal > editwinrows - 1) if (goal > editwinrows - 1)
goal = editwinrows - 1; goal = editwinrows - 1;
/* If the last line of the file is onscreen but isn't at the
* bottom of the screen, set goal so that it will be after
* we update. */
if (foo->lineno + editwinrows >= filebot->lineno)
goal = (editwinrows - 1) - (filebot->lineno - foo->lineno);
} }
for (; goal > 0 && foo->prev != NULL; goal--) for (; goal > 0 && foo->prev != NULL; goal--)
......
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