Commit 925ad639 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: remove a superfluous setting, and add a comment

parent 3264d0c5
Showing with 4 additions and 2 deletions
+4 -2
......@@ -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))
......
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