summaryrefslogtreecommitdiff
path: root/lisp/vc-dispatcher.el
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2008-06-08 14:53:18 +0000
committerAndreas Schwab <schwab@suse.de>2008-06-08 14:53:18 +0000
commitc99657a5587beecba9039b5540e927abaf4a9720 (patch)
tree228f7644a272e0053bc316b697bb8293d8bb893f /lisp/vc-dispatcher.el
parent24f7ee4cee91afc419cf916859da3041b6086562 (diff)
downloademacs-c99657a5587beecba9039b5540e927abaf4a9720.tar.gz
(vc-dir-move-to-goal-column): Don't move in an
empty line.
Diffstat (limited to 'lisp/vc-dispatcher.el')
-rw-r--r--lisp/vc-dispatcher.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/vc-dispatcher.el b/lisp/vc-dispatcher.el
index dd4d20314ed..7179d77e8f4 100644
--- a/lisp/vc-dispatcher.el
+++ b/lisp/vc-dispatcher.el
@@ -676,8 +676,9 @@ See `run-hooks'."
(defun vc-dir-move-to-goal-column ()
;; Used to keep the cursor on the file name column.
(beginning-of-line)
- ;; Must be in sync with vc-default-status-printer.
- (forward-char 25))
+ (unless (eolp)
+ ;; Must be in sync with vc-default-status-printer.
+ (forward-char 25)))
(defun vc-dir-prepare-status-buffer (bname dir &optional create-new)
"Find a buffer named BNAME showing DIR, or create a new one."