]> git.lyx.org Git - lyx.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>
Mon, 13 Jan 2014 16:32:32 +0000 (17:32 +0100)
src/Buffer.cpp

index b8719cbf164a84bf4ec41c81b508203785214e50..904042577349e895638de161a29b69abd1b8b908 100644 (file)
@@ -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());