* lisp/dired-x.el (dired-filename-at-point): Fix 8-year old typo.
authorGlenn Morris <rgm@gnu.org>
Thu, 17 Feb 2011 04:38:23 +0000 (20:38 -0800)
committerGlenn Morris <rgm@gnu.org>
Thu, 17 Feb 2011 04:38:23 +0000 (20:38 -0800)
Introduced in 2003-01-27T11:36:08Z!fx@gnu.org, 2003/01/27.

lisp/ChangeLog
lisp/dired-x.el

index fafb931..c626dcd 100644 (file)
@@ -1,3 +1,7 @@
+2011-02-17  Glenn Morris  <rgm@gnu.org>
+
+       * dired-x.el (dired-filename-at-point): Fix 8-year old typo.
+
 2011-02-16  Ken Manheimer  <ken.manheimer@gmail.com>
 
        * allout-widgets.el: New allout extension that shows allout
index 0d16eef..56b3c7b 100644 (file)
@@ -1678,7 +1678,7 @@ Not perfect - point must be in middle of or end of filename."
            (setq prefix
                  (and (string-match
                        "^\\w+@"
-                       (buffer-substring start (line-beginning-position)))
+                       (buffer-substring start (line-end-position)))
                       "/"))
             (goto-char start)
             (if (string-match "[/~]" (char-to-string (preceding-char)))