From: David Lawrence Ramsey Date: Sat, 29 Apr 2006 15:12:07 +0000 (+0000) Subject: really fix do_indent_marked() breakage X-Git-Tag: v1.3.12~225 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=5c819b53e1f8f3ecd5fc1038e467428eb3353060;p=nano.git really fix do_indent_marked() breakage git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3455 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/src/text.c b/src/text.c index 7ef5d953..48717958 100644 --- a/src/text.c +++ b/src/text.c @@ -303,13 +303,12 @@ 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) && f == openfile->filebot) + new_magicline(); } }