]> git.wh0rd.org Git - nano.git/commitdiff
Deleting a redundant assignment.
authorBenno Schulenberg <bensberg@justemail.net>
Fri, 6 Nov 2015 21:02:50 +0000 (21:02 +0000)
committerBenno Schulenberg <bensberg@justemail.net>
Fri, 6 Nov 2015 21:02:50 +0000 (21:02 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5394 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
src/text.c

index b7d4035b35bde62c389d35282eb146133ade076a..ee71843eab8ae780b120a09c5d5ae8e0f109837f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,7 @@
        (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.
+       * src/text.c (do_redo): Delete a redundant assignment.
 
 2015-11-02  Benno Schulenberg  <bensberg@justemail.net>
        * src/nano.h: Delete an unused type definition.
index dec98164b690bba24dd3706e8a797491955aa1a8..1dfaacdc431ea00c95546a7e50c8679e27da95f9 100644 (file)
@@ -673,7 +673,6 @@ void do_redo(void)
        strcpy(&data[u->begin], &f->data[u->begin + strlen(u->strdata)]);
        free(f->data);
        f->data = data;
-       openfile->current_x = u->begin;
        goto_line_posx(u->lineno, u->begin);
        break;
     case ENTER: