]> 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)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 29 Apr 2016 16:00:53 +0000 (18:00 +0200)
commitfe5e117038788c7eeca8b10562eff108c26af4b0
tree3804edaa4ef6cd7d0e2d357d7143d5132c4ffc8a
parent044933b0d929e759d0c7badf55eafc471623cc0c
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.

(cherry picked from commit 0036762f30def16ab8b2216f721f9e552893bc85)
src/BufferView.cpp