]> git.wh0rd.org Git - nano.git/commitdiff
Not setting 'openfile->mark_begin' for no reason.
authorBenno Schulenberg <bensberg@justemail.net>
Fri, 6 Nov 2015 20:55:46 +0000 (20:55 +0000)
committerBenno Schulenberg <bensberg@justemail.net>
Fri, 6 Nov 2015 20:55:46 +0000 (20:55 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5393 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
src/cut.c

index 9c088a46368128ba597d0c6c63d576555aa66a98..b7d4035b35bde62c389d35282eb146133ade076a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,8 @@
        * src/global.c (length_of_list), src/winio.c(get_mouseinput): Don't
        check whether a function has a help line, since all of them have.
        (And even if some didn't, they would still be valid functions.)
+       * src/cut.c (cut_line): There is no need to set 'openfile->mark_begin'
+       just like that; it will be set when 'openfile->mark_set' becomes TRUE.
 
 2015-11-02  Benno Schulenberg  <bensberg@justemail.net>
        * src/nano.h: Delete an unused type definition.
index e26401de6a3832b2db2fa0c13db98bf45136a90f..c7dffbf70ec6c566a8feae94122c0a2f9e06d8cb 100644 (file)
--- a/src/cut.c
+++ b/src/cut.c
@@ -50,11 +50,6 @@ inline bool keeping_cutbuffer(void)
  * current line. */
 void cut_line(void)
 {
-#ifndef NANO_TINY
-    if (!openfile->mark_begin)
-       openfile->mark_begin = openfile->current;
-#endif
-
     if (openfile->current != openfile->filebot)
        move_to_filestruct(&cutbuffer, &cutbottom, openfile->current, 0,
                openfile->current->next, 0);