From c99657a5587beecba9039b5540e927abaf4a9720 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Sun, 8 Jun 2008 14:53:18 +0000 Subject: (vc-dir-move-to-goal-column): Don't move in an empty line. --- lisp/vc-dispatcher.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lisp/vc-dispatcher.el') 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." -- cgit v1.2.1