mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
dekels small deleteemptyparagraphmechanism patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@651 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
c93e59102c
commit
d44343083f
@ -1,5 +1,8 @@
|
||||
2000-04-12 Lars Gullik Bjønnes <larsbj@lyx.org>
|
||||
|
||||
* src/text2.C (DeleteEmptyParagraphMechanism): small patch posted
|
||||
to the list by Dekel.
|
||||
|
||||
* src/lyxfunc.C (Dispatch): make PARAGRAPH_SPACING compile with
|
||||
strstream too.
|
||||
|
||||
|
@ -3483,13 +3483,13 @@ void LyXText::DeleteEmptyParagraphMechanism(LyXCursor const & old_cursor) const
|
||||
&& old_cursor.par->IsLineSeparator(old_cursor.pos)
|
||||
&& old_cursor.par->IsLineSeparator(old_cursor.pos - 1)) {
|
||||
old_cursor.par->Erase(old_cursor.pos - 1);
|
||||
status = LyXText::NEED_MORE_REFRESH;
|
||||
RedoParagraphs(old_cursor, old_cursor.par->Next());
|
||||
// correct cursor
|
||||
if (old_cursor.par == cursor.par &&
|
||||
cursor.pos > old_cursor.pos) {
|
||||
SetCursorIntern(cursor.par, cursor.pos - 1);
|
||||
}
|
||||
} else
|
||||
SetCursorIntern(cursor.par, cursor.pos);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user