From: Jürgen Vigna Date: Fri, 24 May 2002 10:37:46 +0000 (+0000) Subject: Undo cursor/selection bug fix. X-Git-Tag: 1.6.10~19219 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b7a265b19ebc97e7a884728ffea9dfddf0cf8691;p=lyx.git Undo cursor/selection bug fix. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4197 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/ChangeLog b/src/ChangeLog index a75ec18fb1..dea1a7a17d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2002-05-24 Juergen Vigna + + * undo_funcs.C (textHandleUndo): fix the cursor selection after + setting the undo_cursor. + 2002-05-23 John Levon * BufferView_pimpl.C: diff --git a/src/undo_funcs.C b/src/undo_funcs.C index d8304ed94b..8a9afeee35 100644 --- a/src/undo_funcs.C +++ b/src/undo_funcs.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()); } }