mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 01:08:45 +00:00
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:
parent
fd9ff4c011
commit
f45c21fea7
@ -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>
|
2006-03-16 Félix-Antoine Bourbonnais <bouf10pub2@myriade.ca>
|
||||||
|
|
||||||
* text3.C (dispatch): set needsUpdate according to the return
|
* text3.C (dispatch): set needsUpdate according to the return
|
||||||
|
@ -1541,6 +1541,10 @@ bool LyXText::Delete(LCursor & cur)
|
|||||||
recordUndo(cur, Undo::DELETE, cur.pit());
|
recordUndo(cur, Undo::DELETE, cur.pit());
|
||||||
setCursorIntern(cur, cur.pit(), cur.pos() + 1, false, cur.boundary());
|
setCursorIntern(cur, cur.pit(), cur.pos() + 1, false, cur.boundary());
|
||||||
needsUpdate = backspace(cur);
|
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()) {
|
} else if (cur.pit() != cur.lastpit()) {
|
||||||
LCursor scur = cur;
|
LCursor scur = cur;
|
||||||
|
|
||||||
|
@ -58,6 +58,8 @@ What's new
|
|||||||
|
|
||||||
- Fix cursor positioning in tabulars (bug 2006).
|
- 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
|
- Update screen when cursor was between two spaces and goes to
|
||||||
line/document start/end (bug 2298).
|
line/document start/end (bug 2298).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user