mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-19 22:40:26 +00:00
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
.
This commit is contained in:
parent
e7b1ee47ea
commit
c4531741a9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user