]> git.wh0rd.org Git - nano.git/commitdiff
fix screen update problem when copying the last line on the screen with
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Sun, 18 Jun 2006 15:21:11 +0000 (15:21 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Sun, 18 Jun 2006 15:21:11 +0000 (15:21 +0000)
the mark off and CUT_TO_END set to FALSE

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3663 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/cut.c

index 57edaa0411a75b00d71098a3b873b8b9f19ad8cc..822a46b83fabcd8af0e25eeb82d9fdf0e3f8e2c6 100644 (file)
--- a/src/cut.c
+++ b/src/cut.c
@@ -127,7 +127,6 @@ void do_cut_text(
     size_t cb_save_len = 0;
        /* The length of the string at the current end of the cutbuffer,
         * before we add text to it.  */
-    bool old_mark_set = openfile->mark_set;
     bool old_no_newlines = ISSET(NO_NEWLINES);
 #endif
 
@@ -208,10 +207,7 @@ void do_cut_text(
        set_modified();
 
     /* Update the screen. */
-#ifndef NANO_TINY
-    if (!copy_text || old_mark_set)
-#endif
-       edit_refresh();
+    edit_refresh();
 
 #ifdef DEBUG
     dump_filestruct(cutbuffer);