2009-11-14 Chris Allegretta <chrisa@asty.org>

* move.c (do_first_line, do_last_line): Just set edit_refresh_needed rather than 
          get messy.



git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4423 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
Chris Allegretta 2009-11-14 19:57:38 +00:00
parent f55ada727e
commit f9d4fd3755
2 changed files with 6 additions and 8 deletions

View File

@ -1,3 +1,7 @@
2009-11-14 Chris Allegretta <chrisa@asty.org>
* move.c (do_first_line, do_last_line): Just set edit_refresh_needed rather than
get messy.
2009-11-13 Chris Allegretta <chrisa@asty.org>
* winio.c: Add new static maxsize to be able to easier calculation with
softwrap.

View File

@ -29,28 +29,22 @@
/* Move to the first line of the file. */
void do_first_line(void)
{
filestruct *current_save = openfile->current;
size_t pww_save = openfile->placewewant;
openfile->current = openfile->fileage;
openfile->current_x = 0;
openfile->placewewant = 0;
edit_redraw(current_save, pww_save);
edit_refresh_needed = 1;
}
/* Move to the last line of the file. */
void do_last_line(void)
{
filestruct *current_save = openfile->current;
size_t pww_save = openfile->placewewant;
openfile->current = openfile->filebot;
openfile->current_x = strlen(openfile->filebot->data);
openfile->placewewant = xplustabs();
openfile->current_y = editwinrows - 1;
edit_redraw(current_save, pww_save);
edit_refresh_needed = 1;
}
/* Move up one page. */