commit 925ad6393a6d75534a5850e9445e903790cb68bd
parent 3264d0c5be4d785b87e8f9f41939ee395541732b
Author: Benno Schulenberg <bensberg@justemail.net>
Date: Wed, 12 Oct 2016 21:07:16 +0200
tweaks: remove a superfluous setting, and add a comment
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/move.c b/src/move.c
@@ -28,7 +28,7 @@
/* Move to the first line of the file. */
void do_first_line(void)
{
- openfile->current = openfile->edittop = openfile->fileage;
+ openfile->current = openfile->fileage;
openfile->current_x = 0;
openfile->placewewant = 0;
@@ -41,6 +41,8 @@ void do_last_line(void)
openfile->current = openfile->filebot;
openfile->current_x = strlen(openfile->filebot->data);
openfile->placewewant = xplustabs();
+
+ /* Set the last line of the screen as the target for the cursor. */
openfile->current_y = editwinrows - 1;
refresh_needed = TRUE;
@@ -177,7 +179,7 @@ void do_para_begin_void(void)
* paragraph or isn't in a paragraph. */
void do_para_end(bool allow_update)
{
- filestruct *const current_save = openfile->current;
+ filestruct *current_save = openfile->current;
while (openfile->current != openfile->filebot &&
!inpar(openfile->current))