]> git.wh0rd.org Git - nano.git/commitdiff
still more cosmetic fixes
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Thu, 16 Aug 2007 03:18:17 +0000 (03:18 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Thu, 16 Aug 2007 03:18:17 +0000 (03:18 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4155 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/files.c

index 95d20176326d683916bf02a8384b6cd7a4dc673c..a4246e0f6eb19be044f7c25b66c51ab2f76c4735 100644 (file)
@@ -876,13 +876,13 @@ void do_insertfile(
                    edittop_save = openfile->fileage;
 
                /* Update the current x-coordinate to account for the
-                * number of characters inserted on the current line. */
+                * number of characters inserted on the current line.
+                * If the mark begins inside the partition, adjust the
+                * mark coordinates to compensate for the change in the
+                * current line. */
                openfile->current_x = strlen(openfile->filebot->data);
                if (openfile->fileage == openfile->filebot) {
 #ifndef NANO_TINY
-                   /* If the mark begins inside the partition, adjust
-                    * the mark coordinates to compensate for the change
-                    * in the current line. */
                    if (openfile->mark_set) {
                        openfile->mark_begin = openfile->current;
                        if (do_mark_shift)