commit a01c0e495f8cb5756b9fab2e5f2161f43c38ab45
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Mon Jan 13 17:27:17 2014 +0100

    Handle undo in `branch-add' LFUN
    
    Backport of 2a99afee94.

diff --git a/src/Buffer.cpp b/src/Buffer.cpp
index af1faf4..c59283a 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 fc5bfce..3ee0c0c 100644
--- a/status.20x
+++ b/status.20x
@@ -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
 
 

Reply via email to