+2015-11-30 Benno Schulenberg <bensberg@justemail.net>
+ * src/text.c (redo_cut, update_undo): When cutting reaches the EOF,
+ and NONEWLINES is set, there is no next line at which to put the
+ cutting point for a redo. So put it at the very end of the cut.
+ This fixes Savannah bug #46541.
+
2015-11-29 Benno Schulenberg <bensberg@justemail.net>
* src/color.c (reset_multis): Evaluate correctly whether to reset
the multidata cache. This fixes Savannah bug #46543.
goto_line_posx(u->lineno, u->begin);
- if (ISSET(NO_NEWLINES) && openfile->current->lineno != u->lineno) {
- openfile->current_x = strlen(openfile->current->data);
- openfile->placewewant = xplustabs();
- }
-
openfile->mark_set = TRUE;
openfile->mark_begin = fsfromline(u->mark_begin_lineno);
openfile->mark_begin_x = (u->xflags == WAS_WHOLE_LINE) ? 0 : u->mark_begin_x;
u->begin = strlen(u->cutbottom->data);
if (u->lineno == u->mark_begin_lineno)
u->begin += u->mark_begin_x;
- }
+ } else if (openfile->current == openfile->filebot &&
+ ISSET(NO_NEWLINES))
+ u->begin = strlen(u->cutbottom->data);
}
break;
case REPLACE: