stgit.el: Use forward-line instead of goto-line non-interactively
authorGustav Hållberg <gustav@gmail.com>
Mon, 19 Apr 2010 14:43:21 +0000 (16:43 +0200)
committerGustav Hållberg <gustav@gmail.com>
Thu, 29 Apr 2010 22:28:33 +0000 (00:28 +0200)
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
contrib/stgit.el

index 3a40e2a..5fe05e6 100644 (file)
@@ -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