(Johnathan Burchill:) fix for stuck cursor when traversing two consecutive spaces in change tracking mode [bug 1255]

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9693 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2005-03-05 10:59:29 +00:00
parent b433a7ff83
commit 194f2be6de
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-03-05 Johnathan Burchill <jkerrb@users.sourceforge.net>
* text2.C: fix for stuck cursor when traversing two
consecutive spaces. [bug 1255] (pars_[old.pit()].setChange)
2005-02-25 Andreas Vox <avox@arcor.de>
* output_docbook.C (makeParagraph): suppress trailing newline

View File

@ -1129,6 +1129,10 @@ bool LyXText::deleteEmptyParagraphMechanism(LCursor & cur, LCursor const & old)
&& old.pos() < oldpar.size()
&& oldpar.isLineSeparator(old.pos())
&& oldpar.isLineSeparator(old.pos() - 1)) {
// We need to set the text to Change::INSERTED to
// get it erased properly
pars_[old.pit()].setChange(old.pos() -1,
Change::INSERTED);
pars_[old.pit()].erase(old.pos() - 1);
#ifdef WITH_WARNINGS
#warning This will not work anymore when we have multiple views of the same buffer