From d44343083fec49a56dc8d20012171086e834e421 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lars=20Gullik=20Bj=C3=B8nnes?= Date: Wed, 12 Apr 2000 14:58:27 +0000 Subject: [PATCH] dekels small deleteemptyparagraphmechanism patch git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@651 a592a061-630c-0410-9148-cb99ea01b6c8 --- ChangeLog | 3 +++ src/text2.C | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d5d7195af4..26265255f0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2000-04-12 Lars Gullik Bjønnes + * src/text2.C (DeleteEmptyParagraphMechanism): small patch posted + to the list by Dekel. + * src/lyxfunc.C (Dispatch): make PARAGRAPH_SPACING compile with strstream too. diff --git a/src/text2.C b/src/text2.C index 2a5a29d428..74175d6c51 100644 --- a/src/text2.C +++ b/src/text2.C @@ -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; } } -- 2.39.2