From 79473ca5521ec3233dcf83d1c25758cf5eff7386 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gustav=20H=C3=A5llberg?= Date: Mon, 19 Apr 2010 16:43:21 +0200 Subject: [PATCH] stgit.el: Use forward-line instead of goto-line non-interactively MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Gustav HÃ¥llberg --- contrib/stgit.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.11.0