]> git.wh0rd.org Git - nano.git/commitdiff
fix do_indent_marked() breakage
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Sat, 29 Apr 2006 15:07:37 +0000 (15:07 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Sat, 29 Apr 2006 15:07:37 +0000 (15:07 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3454 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/text.c

index 1e074ce5036b942a13f4cf81aecefcfb538281f7..7ef5d9530f4666ea44dadfd806a6043dbd19c72e 100644 (file)
@@ -303,13 +303,13 @@ void do_indent_marked(ssize_t len)
            if (f == openfile->current) {
                openfile->current_x += line_indent_len;
                openfile->mark_begin_x += line_indent_len;
-           }
 
-           /* If the NO_NEWLINES flag isn't set, and this is the
-            * magicline, add a new magicline. */
-           if (!ISSET(NO_NEWLINES) && openfile->current ==
-               openfile->filebot)
-               new_magicline();
+               /* If the NO_NEWLINES flag isn't set, and this is the
+                * magicline, add a new magicline. */
+               if (!ISSET(NO_NEWLINES) && openfile->current ==
+                       openfile->filebot)
+                   new_magicline();
+           }
        }
     }