changeset 95672:df59f8d16051

(vc-dir-move-to-goal-column): Don't move in an empty line.
author Andreas Schwab <schwab@suse.de>
date Sun, 08 Jun 2008 14:53:18 +0000
parents b88c2237c3e7
children 52ec5c5888db
files lisp/ChangeLog lisp/vc-dispatcher.el
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Sun Jun 08 14:10:50 2008 +0000
+++ b/lisp/ChangeLog	Sun Jun 08 14:53:18 2008 +0000
@@ -1,5 +1,8 @@
 2008-06-08  Andreas Schwab  <schwab@suse.de>
 
+	* 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.
 
--- a/lisp/vc-dispatcher.el	Sun Jun 08 14:10:50 2008 +0000
+++ b/lisp/vc-dispatcher.el	Sun Jun 08 14:53:18 2008 +0000
@@ -676,8 +676,9 @@
 (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."