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
This commit is contained in:
Jürgen Spitzmüller 2006-03-16 15:49:15 +00:00
parent fd9ff4c011
commit f45c21fea7
3 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2006-03-16 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* text.C (delete): adjust cursor after backspace in change tracking
mode (bug 2185).
2006-03-16 Félix-Antoine Bourbonnais <bouf10pub2@myriade.ca>
* text3.C (dispatch): set needsUpdate according to the return

View File

@ -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;

View File

@ -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).