]> git.wh0rd.org Git - nano.git/commitdiff
2009-11-14 Chris Allegretta <chrisa@asty.org>
authorChris Allegretta <chrisa@asty.org>
Sat, 14 Nov 2009 19:57:38 +0000 (19:57 +0000)
committerChris Allegretta <chrisa@asty.org>
Sat, 14 Nov 2009 19:57:38 +0000 (19:57 +0000)
        * 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

ChangeLog
src/move.c

index 09cd2cf2a02de1f544129039a6c89a385364ba70..276cfa4cb44d603796934cc37148ccb5cab4a270 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 737404dec9fe07682bdbc3d56c09605da9d44152..ebea8817717242184accd1a9c3c3ac6d70149413 100644 (file)
 /* 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. */