]> git.lyx.org Git - features.git/commitdiff
Handle undo in `branch-add' LFUN
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 13 Jan 2014 16:27:17 +0000 (17:27 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 28 Jan 2014 10:48:49 +0000 (11:48 +0100)
Backport of 2a99afee94.

src/Buffer.cpp
status.20x

index af1faf42118c64879c4ed9df20c287238b5eaf38..c59283a4d84d8aaedb88b7b13c07a3fad3301b46 100644 (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());
index fc5bfceafb441751e26375ca5b5931c1b5bf579e..3ee0c0cd90ee03aedec521e8771d2c3d75037689 100644 (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