mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Branch-invert: Record undo and update Toc
This commit is contained in:
parent
6f97684d56
commit
0fba5c4e8b
@ -189,7 +189,11 @@ void InsetBranch::doDispatch(Cursor & cur, FuncRequest & cmd)
|
||||
break;
|
||||
}
|
||||
case LFUN_BRANCH_INVERT:
|
||||
cur.recordUndoInset(this);
|
||||
params_.inverted = !params_.inverted;
|
||||
// what we really want here is a TOC update, but that means
|
||||
// a full buffer update
|
||||
cur.forceBufferUpdate();
|
||||
break;
|
||||
case LFUN_BRANCH_ADD:
|
||||
lyx::dispatch(FuncRequest(LFUN_BRANCH_ADD, params_.branch));
|
||||
|
Loading…
Reference in New Issue
Block a user