From cf7084771cd276eb1e42eca8fc4f2d2dcf45da0e Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sun, 12 Nov 2006 14:59:35 +0000 Subject: [PATCH] Fix comments. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15885 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/text.C | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/text.C b/src/text.C index b8049a7417..674b7103f1 100644 --- a/src/text.C +++ b/src/text.C @@ -1149,9 +1149,10 @@ void LyXText::breakParagraph(LCursor & cur, bool keep_layout) Change(Change::INSERTED)); } - // FIXME: back spacing have nothing to do with setting a cursor. + // FIXME: Breaking a paragraph has nothing to do with setting a cursor. // Because of the mix between the model (the paragraph contents) and the - // view (the paragraph breaking in rows, we have to do this here. + // view (the paragraph breaking in rows, we have to do this here before + // the setCursor() call below. redoParagraph(cur.bv(), cpit); redoParagraph(cur.bv(), cpit + 1); @@ -1249,7 +1250,7 @@ void LyXText::insertChar(LCursor & cur, char_type c) par.insertChar(cur.pos(), c, current_font, cur.buffer().params().trackChanges); - // FIXME: back spacing have nothing to do with setting a cursor. + // FIXME: Inserting a character has nothing to do with setting a cursor. // Because of the mix between the model (the paragraph contents) and the // view (the paragraph breaking in rows, we have to do this here. redoParagraph(cur.bv(), cur.pit()); @@ -1775,9 +1776,10 @@ bool LyXText::backspace(LCursor & cur) if (cur.pos() == cur.lastpos()) setCurrentFont(cur); - // FIXME: back spacing have nothing to do with setting a cursor. - // Because of the mix between the model (the paragraph contents) and the - // view (the paragraph breaking in rows, we have to do this here. + // FIXME: Backspacing has nothing to do with setting a cursor. + // Because of the mix between the model (the paragraph contents) + // and the view (the paragraph breaking in rows, we have to do this + // here before the setCursor() call. redoParagraph(cur.bv(), cur.pit()); setCursor(cur, cur.pit(), cur.pos(), false, cur.boundary()); -- 2.39.2