aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustav Hållberg <gustav@gmail.com>2012-04-06 21:32:23 +0200
committerGustav Hållberg <gustav@gmail.com>2012-04-09 09:23:19 +0200
commit64b814fac4f76232dae8e95b8b5d0004d92108a4 (patch)
tree09eba1af95b95b75e128346138d70d545f575b52
parentab228bc3b13dbb0cdc256272a54759f041fd8908 (diff)
downloadstgit-64b814fac4f76232dae8e95b8b5d0004d92108a4.tar.gz
stgit.el: Make "i" set mark correctly when working on the entire patch
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
-rw-r--r--contrib/stgit.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/stgit.el b/contrib/stgit.el
index 00ef49a..b1ab5be 100644
--- a/contrib/stgit.el
+++ b/contrib/stgit.el
@@ -2327,6 +2327,7 @@ file ended up. You can then jump to the file with \
(stgit-refresh-index)
(stgit-goto-patch (if (eq patch-name :index) :work :index) mark-file)
(push-mark nil t t)
+ (setq deactivate-mark t)
(stgit-goto-patch patch-name point-file))))
(defun stgit-toggle-index ()
@@ -2356,6 +2357,9 @@ file ended up. You can then jump to the file with \
(stgit-run-git "reset" "--mixed" "-q")))
(stgit-refresh-worktree)
(stgit-refresh-index))
+ (stgit-goto-patch patch-name)
+ (push-mark nil t t)
+ (setq deactivate-mark t)
(stgit-goto-patch (if (eq patch-name :index) :work :index)))))
(defun stgit-edit ()