From: Gustav HÃ¥llberg Date: Mon, 19 Apr 2010 14:43:21 +0000 (+0200) Subject: stgit.el: Use forward-line instead of goto-line non-interactively X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/commitdiff_plain/79473ca5521ec3233dcf83d1c25758cf5eff7386 stgit.el: Use forward-line instead of goto-line non-interactively Signed-off-by: Gustav HÃ¥llberg --- 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