]> git.wh0rd.org Git - nano.git/commitdiff
fix breakage
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Thu, 16 Aug 2007 04:05:05 +0000 (04:05 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Thu, 16 Aug 2007 04:05:05 +0000 (04:05 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4157 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/files.c
src/nano.c

index 87ee50cb30028d47c1d06f8bebe76f0c56f2bbe6..766168df2f9d9a8155f5f481678491cfe3b64237 100644 (file)
@@ -897,7 +897,7 @@ void do_insertfile(
                }
 #ifndef NANO_TINY
                else if (openfile->mark_set && do_mark_shift)
-                   openfile->mark_begin_x -= current_x_save;
+                   openfile->mark_begin_x -= openfile->current_x;
 #endif
 
                /* Update the current y-coordinate to account for the
index f5a047f755a830d7291f90806b89901383132bc3..732bf8d021d72e3c94273c65814272c62cb88735 100644 (file)
@@ -438,7 +438,7 @@ void copy_from_filestruct(filestruct *file_top, filestruct *file_bot)
     }
 #ifndef NANO_TINY
     else if (openfile->mark_set && do_mark_shift)
-       openfile->mark_begin_x -= current_x_save;
+       openfile->mark_begin_x -= openfile->current_x;
 #endif
 
     /* Get the number of characters in the copied text, and add it to