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

src/files.c

index c30982c0ad23c746dc608bb37fb4c1e4727b471f..6a5cc8b559723a7283c3acb07a1852dbdc142325 100644 (file)
@@ -695,8 +695,7 @@ void do_insertfile(
     filestruct *edittop_save = openfile->edittop;
     size_t current_x_save = openfile->current_x;
     ssize_t current_y_save = openfile->current_y;
-    bool at_edittop = FALSE;
-       /* Whether we're at the top of the edit window. */
+    bool edittop_inside = FALSE;
 #ifndef NANO_TINY
     bool do_mark_shift = FALSE;
 #endif
@@ -804,14 +803,14 @@ void do_insertfile(
                /* If we're not inserting into a new buffer, partition
                 * the filestruct so that it contains no text and hence
                 * looks like a new buffer, keep track of whether the
-                * top of the partition is the top of the edit
-                * window, and keep track of whether the mark begins
-                * inside the partition and will need adjustment. */
+                * top of the edit window is inside the partition, and
+                * keep track of whether the mark begins inside the
+                * partition and will need adjustment. */
                filepart = partition_filestruct(openfile->current,
                        openfile->current_x, openfile->current,
                        openfile->current_x);
-               at_edittop =
-                       (openfile->fileage == openfile->edittop);
+               edittop_inside =
+                       (openfile->edittop == openfile->fileage);
 #ifndef NANO_TINY
                if (openfile->mark_set)
                    do_mark_shift = (openfile->current_x <=
@@ -873,7 +872,7 @@ void do_insertfile(
                /* If we were at the top of the edit window before, set
                 * the saved value of edittop to the new top of the edit
                 * window. */
-               if (at_edittop)
+               if (edittop_inside)
                    edittop_save = openfile->fileage;
 
                /* Update the current x-coordinate to account for the