// paste the paragraphs again, if possible
if (doclear)
- sel_start_cursor.par->Next()->ClearParagraph();
+ sel_start_cursor.par->Next()->StripLeadingSpaces(simple_cut_buffer_textclass);
if (sel_start_cursor.par->FirstPhysicalPar()->HasSameLayout(sel_start_cursor.par->Next())
||
!sel_start_cursor.par->Next()->Last())
// sometimes necessary
if (doclear)
- sel_start_cursor.par->ClearParagraph();
+ sel_start_cursor.par->StripLeadingSpaces(simple_cut_buffer_textclass);
RedoParagraphs(sel_start_cursor, endpar);
// sometimes necessary
if (doclear)
- sel_start_cursor.par->ClearParagraph();
+ sel_start_cursor.par->StripLeadingSpaces(buffer->params.textclass);
RedoParagraphs(sel_start_cursor, endpar);
lastbuffer->ParFromPos(lastbuffer->Last())->PasteParagraph();
} else
- lastbuffer->Next()->ClearParagraph();
+ lastbuffer->Next()->StripLeadingSpaces(buffer->params.textclass);
}
// restore the simple cut buffer
// MISSING
// If the pos around the old_cursor were spaces, delete one of them.
- if (old_cursor.par != cursor.par || old_cursor.pos != cursor.pos) { // Only if the cursor has really moved
+ if (old_cursor.par != cursor.par || old_cursor.pos != cursor.pos) {
+ // Only if the cursor has really moved
if (old_cursor.pos > 0
&& old_cursor.pos < old_cursor.par->Last()
}
}
if (!deleted) {
- if (old_cursor.par->ClearParagraph()) {
+ if (old_cursor.par->StripLeadingSpaces(buffer->params.textclass)) {
RedoParagraphs(old_cursor, old_cursor.par->Next());
// correct cursor y
SetCursorIntern(cursor.par, cursor.pos);