From: Jean-Marc Lasgouttes Date: Mon, 13 Jan 2014 16:27:17 +0000 (+0100) Subject: Handle undo in `branch-add' LFUN X-Git-Tag: 2.0.8~84 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a01c0e495f8cb5756b9fab2e5f2161f43c38ab45;p=features.git Handle undo in `branch-add' LFUN Backport of 2a99afee94. --- diff --git a/src/Buffer.cpp b/src/Buffer.cpp index af1faf4211..c59283a4d8 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -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()); diff --git a/status.20x b/status.20x index fc5bfceafb..3ee0c0cd90 100644 --- a/status.20x +++ b/status.20x @@ -59,6 +59,8 @@ What's new - Fix the missing menu entry for "Insert Branch ". +- Handle undo in `branch-add' function. + * DOCUMENTATION AND LOCALIZATION