aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustav Hållberg <gustav@gmail.com>2010-04-19 16:43:21 +0200
committerGustav Hållberg <gustav@gmail.com>2010-04-30 00:28:33 +0200
commit79473ca5521ec3233dcf83d1c25758cf5eff7386 (patch)
tree66a4c62b09627a97d68f6110f1f03a6ad3d51f5b
parent8a619f5578ba31cd0e6662731d94c2ce67014a7b (diff)
downloadstgit-79473ca5521ec3233dcf83d1c25758cf5eff7386.tar.gz
stgit.el: Use forward-line instead of goto-line non-interactively
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
-rw-r--r--contrib/stgit.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/stgit.el b/contrib/stgit.el
index 3a40e2a..5fe05e6 100644
--- a/contrib/stgit.el
+++ b/contrib/stgit.el
@@ -583,7 +583,9 @@ been advised to update the stgit status when necessary.")
(unless (and curpatch
(stgit-goto-patch curpatch
(and curfile (stgit-file->file curfile))))
- (goto-line curline)))
+ (goto-char (point-min))
+ (forward-line (1- curline))
+ (move-to-column (stgit-goal-column))))
(stgit-refresh-git-status))
(defconst stgit-file-status-code-strings