From c99657a5587beecba9039b5540e927abaf4a9720 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Sun, 8 Jun 2008 14:53:18 +0000 Subject: [PATCH] (vc-dir-move-to-goal-column): Don't move in an empty line. --- lisp/ChangeLog | 3 +++ lisp/vc-dispatcher.el | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5521c6b7ddd..ea99adb5dc4 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2008-06-08 Andreas Schwab + * vc-dispatcher.el (vc-dir-move-to-goal-column): Don't move in an + empty line. + * minibuffer.el (minibuffer-message): Bind inhibit-quit around sit-for. 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." -- 2.11.4.GIT