mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-28 20:45:47 +00:00
Handle undo in `branch-add' LFUN
This commit is contained in:
parent
5ac558f262
commit
2a99afee94
@ -2491,6 +2491,7 @@ void Buffer::dispatch(FuncRequest const & func, DispatchResult & dr)
|
||||
msg += ("\n");
|
||||
msg += bformat(_("Branch \"%1$s\" already exists."), branch_name);
|
||||
} else {
|
||||
undo().recordUndoFullDocument(CursorData());
|
||||
branch_list.add(branch_name);
|
||||
branch = branch_list.find(branch_name);
|
||||
string const x11hexname = X11hexname(branch->color());
|
||||
|
Loading…
Reference in New Issue
Block a user