From f45c21fea76ee2d3437b6a4979451ce85f2ba31a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Thu, 16 Mar 2006 15:49:15 +0000 Subject: [PATCH] adjust cursor after backspace in change tracking mode (bug 2185). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13406 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 5 +++++ src/text.C | 4 ++++ status.14x | 2 ++ 3 files changed, 11 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 963fac4f88..36412126a9 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2006-03-16 Jürgen Spitzmüller + + * text.C (delete): adjust cursor after backspace in change tracking + mode (bug 2185). + 2006-03-16 Félix-Antoine Bourbonnais * text3.C (dispatch): set needsUpdate according to the return diff --git a/src/text.C b/src/text.C index 744de94816..e447cca6db 100644 --- a/src/text.C +++ b/src/text.C @@ -1541,6 +1541,10 @@ bool LyXText::Delete(LCursor & cur) recordUndo(cur, Undo::DELETE, cur.pit()); setCursorIntern(cur, cur.pit(), cur.pos() + 1, false, cur.boundary()); needsUpdate = backspace(cur); + Paragraph & par = cur.paragraph(); + if (cur.pos() < par.size() + && par.lookupChange(cur.pos()) == Change::DELETED) + cur.posRight(); } else if (cur.pit() != cur.lastpit()) { LCursor scur = cur; diff --git a/status.14x b/status.14x index f086953f25..f4ace5cf05 100644 --- a/status.14x +++ b/status.14x @@ -58,6 +58,8 @@ What's new - Fix cursor positioning in tabulars (bug 2006). +- Adjust cursor after backspace in change tracking mode (bug 2185). + - Update screen when cursor was between two spaces and goes to line/document start/end (bug 2298).