Hi,

please see the email's subject.

Patch has been tested extensively and committed.

Time to go to bed! Good night!

Michael
Index: text.C
===================================================================
--- text.C	(Revision 16031)
+++ text.C	(Arbeitskopie)
@@ -1747,21 +1747,13 @@
 		if (cur.pit() == 0)
 			return dissolveInset(cur);
 
-		if (cur.buffer().params().trackChanges) {
-			// FIXME: Change tracking (MG)
-			// Previous paragraph, mark "carriage return" as
-			// deleted:
-			Paragraph & par = pars_[cur.pit() - 1];
-			// Take care of a just inserted para break:
-			// FIXME: change tracking (MG)
-			if (!par.isInserted(par.size())) {
-				// FIXME: change tracking (MG)
-				par.setChange(par.size(), Change(Change::DELETED));
-				setCursorIntern(cur, cur.pit() - 1, par.size());
-				return true;
-			}
-		}
+		Paragraph & prev_par = pars_[cur.pit() - 1];
 
+		if (!prev_par.isMergedOnEndOfParDeletion(cur.buffer().params().trackChanges)) {
+			prev_par.setChange(prev_par.size(), Change(Change::DELETED));
+			setCursorIntern(cur, cur.pit() - 1, prev_par.size());
+			return true;
+		}
 		// The cursor is at the beginning of a paragraph, so
 		// the backspace will collapse two paragraphs into one.
 		needsUpdate = backspacePos0(cur);
@@ -1776,7 +1768,6 @@
 		// without the dreaded mechanism. (JMarc)
 		setCursorIntern(cur, cur.pit(), cur.pos() - 1,
 				false, cur.boundary());
-		// FIXME: change tracking (MG)
 		cur.paragraph().eraseChar(cur.pos(), cur.buffer().params().trackChanges);
 	}
 

Reply via email to