really fix do_indent_marked() breakage
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3455 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
d9eca4b8bf
commit
5c819b53e1
|
@ -303,15 +303,14 @@ void do_indent_marked(ssize_t len)
|
||||||
if (f == openfile->current) {
|
if (f == openfile->current) {
|
||||||
openfile->current_x += line_indent_len;
|
openfile->current_x += line_indent_len;
|
||||||
openfile->mark_begin_x += line_indent_len;
|
openfile->mark_begin_x += line_indent_len;
|
||||||
|
}
|
||||||
|
|
||||||
/* If the NO_NEWLINES flag isn't set, and this is the
|
/* If the NO_NEWLINES flag isn't set, and this is the
|
||||||
* magicline, add a new magicline. */
|
* magicline, add a new magicline. */
|
||||||
if (!ISSET(NO_NEWLINES) && openfile->current ==
|
if (!ISSET(NO_NEWLINES) && f == openfile->filebot)
|
||||||
openfile->filebot)
|
|
||||||
new_magicline();
|
new_magicline();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
free(line_indent);
|
free(line_indent);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue