- Tweak a few functions to remove the assumption that the file
always ends in a magicline. Changes to cut_line(),
do_cut_till_end(), open_buffer(), read_file(), write_file(),
- do_last_line(), do_alt_speller(), and do_wordlinechar_count().
- (DLR)
+ do_last_line(), do_para_end(), do_alt_speller(), and
+ do_wordlinechar_count(). (DLR)
- Tweak a few functions to rely on fileage and filebot instead
of NULL for their checks to detect the top or bottom of the
file. Changes to cut_line(), cut_to_eol(), do_page_up(),
check_statusblank();
- openfile->current_x = 0;
- openfile->placewewant = 0;
-
if (openfile->current != openfile->fileage) {
do {
openfile->current = openfile->current->prev;
} while (!begpar(openfile->current));
}
+ openfile->current_x = 0;
+ openfile->placewewant = 0;
+
if (allow_update)
edit_redraw(current_save, pww_save);
}
check_statusblank();
- openfile->current_x = 0;
- openfile->placewewant = 0;
-
while (openfile->current != openfile->filebot &&
!inpar(openfile->current))
openfile->current = openfile->current->next;
openfile->current_y++;
}
- if (openfile->current != openfile->filebot)
+ if (openfile->current != openfile->filebot) {
openfile->current = openfile->current->next;
+ openfile->current_x = 0;
+ openfile->placewewant = 0;
+ } else {
+ openfile->current_x = strlen(openfile->current->data);
+ openfile->placewewant = xplustabs();
+ }
if (allow_update)
edit_redraw(current_save, pww_save);