]> git.wh0rd.org Git - nano.git/commitdiff
typo fix
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Wed, 3 May 2006 12:59:05 +0000 (12:59 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Wed, 3 May 2006 12:59:05 +0000 (12:59 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3465 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/text.c

index a2d33df3fc98ca615ce77a4319104d19a8f2e3f5..bd5ca26a3b1ab7a534574557a982f600aaf7a8f9 100644 (file)
@@ -286,10 +286,12 @@ void do_indent_marked(ssize_t cols)
 
                /* Keep track of the change in the current line. */
                if (f == openfile->mark_begin &&
+                       openfile->mark_begin_x > indent_new &&
                        openfile->mark_begin_x >= indent_shift)
                    openfile->mark_begin_x -= indent_shift;
 
-               if (f == openfile->current && openfile->current_x >=
+               if (f == openfile->current && openfile->current_x >
+                       indent_new && openfile->current_x >=
                        indent_shift)
                    openfile->current_x -= indent_shift;