mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
Undo cursor/selection bug fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4197 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
75d1fb6874
commit
b7a265b19e
@ -1,3 +1,8 @@
|
||||
2002-05-24 Juergen Vigna <jug@sad.it>
|
||||
|
||||
* undo_funcs.C (textHandleUndo): fix the cursor selection after
|
||||
setting the undo_cursor.
|
||||
|
||||
2002-05-23 John Levon <moz@compsoc.man.ac.uk>
|
||||
|
||||
* BufferView_pimpl.C:
|
||||
|
@ -240,6 +240,10 @@ bool textHandleUndo(BufferView * bv, Undo * undo)
|
||||
t = bv->text;
|
||||
}
|
||||
t->setCursorIntern(bv, tmppar, undo->cursor_pos);
|
||||
// clear any selection and set the selection cursor
|
||||
// for an evt. new selection.
|
||||
t->clearSelection();
|
||||
t->selection.cursor = t->cursor;
|
||||
t->updateCounters(bv, t->cursor.row());
|
||||
bv->fitCursor();
|
||||
}
|
||||
@ -258,6 +262,10 @@ bool textHandleUndo(BufferView * bv, Undo * undo)
|
||||
t = bv->text;
|
||||
}
|
||||
t->setCursorIntern(bv, tmppar, undo->cursor_pos);
|
||||
// clear any selection and set the selection cursor
|
||||
// for an evt. new selection.
|
||||
t->clearSelection();
|
||||
t->selection.cursor = t->cursor;
|
||||
t->updateCounters(bv, t->cursor.row());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user