]> git.lyx.org Git - features.git/commit
Fix cursor position after redo
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 27 Apr 2016 19:16:34 +0000 (21:16 +0200)
committerRichard Heck <rgheck@lyx.org>
Sun, 29 May 2016 21:55:42 +0000 (17:55 -0400)
commit5aa342ed75e7774734a2dcff8c219970ddeb5a7e
treefea875cae7a30a42bf53d17a2c847552bb65d89c
parentc47bfee23138a0e368371565e2bb8bfc180b7f43
Fix cursor position after redo

When document settings are modified, a command
  inset-forall Branch inset-toggle asign
is run to open as needed all branches. At the end of the said loop,
the cursor is reset to where it was. However, the cur_after undo
element member is not set because it already had a value.

To make this work as expected, it is necessary in LFUN_INSET_FORALL to
reset the cursor before ending the undo group and to insert a dummy
recordUndo call.

Fixes bug #10097.
src/BufferView.cpp