aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustav Hållberg <gustav@gmail.com>2012-04-07 21:24:12 +0200
committerGustav Hållberg <gustav@gmail.com>2012-04-07 21:50:34 +0200
commit7e1b5aa648b30422f1a3328a33da100bfbd76063 (patch)
tree45dab2c3c47a1b75881af391cb7477c801a1eb02
parent6805d5c71e7863b5a8925dbf4029cb3239c7a7e7 (diff)
downloadstgit-7e1b5aa648b30422f1a3328a33da100bfbd76063.tar.gz
stgit.el: Make stgit-previous-patch move to the current patch if on a patched file.
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
-rw-r--r--contrib/stgit.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/stgit.el b/contrib/stgit.el
index 4ecb8b8..eb2b379 100644
--- a/contrib/stgit.el
+++ b/contrib/stgit.el
@@ -1108,6 +1108,8 @@ file for (applied) copies and renames."
(goto-char (point-min)))
(t
(let ((opatch (stgit-patch-at-point)))
+ (when (stgit-patched-file-at-point)
+ (setq arg (1- arg)))
(ewoc-goto-prev stgit-ewoc arg)
(unless (zerop arg)
(when (eq opatch (stgit-patch-at-point))