Handle undo in `branch-add' LFUN

Backport of 2a99afee94.
This commit is contained in:
Jean-Marc Lasgouttes 2014-01-13 17:27:17 +01:00
parent e4cf514e4a
commit a01c0e495f
2 changed files with 3 additions and 0 deletions

View File

@ -2328,6 +2328,7 @@ void Buffer::dispatch(FuncRequest const & func, DispatchResult & dr)
msg += ("\n");
msg += bformat(_("Branch \"%1$s\" already exists."), branch_name);
} else {
undo().recordUndoFullDocument(DocIterator());
branch_list.add(branch_name);
branch = branch_list.find(branch_name);
string const x11hexname = X11hexname(branch->color());

View File

@ -59,6 +59,8 @@ What's new
- Fix the missing menu entry for "Insert Branch <branch name>".
- Handle undo in `branch-add' function.
* DOCUMENTATION AND LOCALIZATION