[prev in list] [next in list] [prev in thread] [next in thread]
List: lyx-cvs
Subject: [LyX/2.0.x] Handle undo in `branch-add' LFUN
From: Jean-Marc Lasgouttes <lasgouttes () lyx ! org>
Date: 2014-01-28 10:49:06
Message-ID: 20140128104906.AED0128025F () lyx ! lyx ! org
[Download RAW message or body]
commit a01c0e495f8cb5756b9fab2e5f2161f43c38ab45
Author: Jean-Marc Lasgouttes <lasgouttes@lyx.org>
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic