diff options
author | Gustav Hållberg <gustav@gmail.com> | 2010-04-19 16:43:21 +0200 |
---|---|---|
committer | Gustav Hållberg <gustav@gmail.com> | 2010-04-30 00:28:33 +0200 |
commit | 79473ca5521ec3233dcf83d1c25758cf5eff7386 (patch) | |
tree | 66a4c62b09627a97d68f6110f1f03a6ad3d51f5b | |
parent | 8a619f5578ba31cd0e6662731d94c2ce67014a7b (diff) | |
download | stgit-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.el | 4 |
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 |