mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
(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:
parent
b433a7ff83
commit
194f2be6de
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user