commit c4531741a9184fa0684d3b1d25c72877bf623da8 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Jun 20 18:00:13 2024 +0200
Fix cursor when undoing accept/reject all changes Before this change, the whole document would remain selected. This relies on the new UndoGroupHelper constructor introduced at e7b1ee47. --- src/BufferView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/BufferView.cpp b/src/BufferView.cpp index b55beb34a7..70d81567c1 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -1686,6 +1686,7 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr) break; case LFUN_ALL_CHANGES_ACCEPT: { + UndoGroupHelper helper(cur); // select complete document cur.reset(); cur.selHandle(true); @@ -1705,6 +1706,7 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr) } case LFUN_ALL_CHANGES_REJECT: { + UndoGroupHelper helper(cur); // select complete document cur.reset(); cur.selHandle(true); -- lyx-cvs mailing list lyx-cvs@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-cvs