]> git.wh0rd.org Git - nano.git/commitdiff
- cut.c:do_cut_text() - Fix incorrect cursor location when cutting long lines (David...
authorChris Allegretta <chrisa@asty.org>
Sun, 26 Jan 2003 03:54:00 +0000 (03:54 +0000)
committerChris Allegretta <chrisa@asty.org>
Sun, 26 Jan 2003 03:54:00 +0000 (03:54 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1389 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
cut.c

index 143a38b602b66b1d50787d015c0bdab18bab9c6f..47f66f434002e54490d633d35246dc08280c5fc5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,10 @@ CVS Code -
          two strings that had no actual words in them that
          should be translated.  Suggested originally by
          Christian Rose.
+- cut.c:
+  do_cut_text()
+       - Fix incorrect cursor location when cutting long lines
+         (David Benbennick).
 - nano.c:
   main()
        - Call load_file with arg 0 for insert, as we aren't really
diff --git a/cut.c b/cut.c
index 35a715c5a316de0abe7ab2a69adaca26d4ba1ce9..cf692a2ce7579d10bc2b465d61814bb09ed20d0f 100644 (file)
--- a/cut.c
+++ b/cut.c
@@ -279,12 +279,11 @@ int do_cut_text(void)
        edittop = current;
 
     renumber(current);
+    current_x = 0;
     edit_refresh();
     set_modified();
     marked_cut = 0;
-    current_x = 0;
     placewewant = 0;
-    reset_cursor();
     SET(KEEP_CUTBUFFER);
     return 1;
 }