Fix bug: file completion wasn't working right if the pathname being
authorChris Hanson <org/chris-hanson/cph>
Fri, 30 Jun 2000 03:08:20 +0000 (03:08 +0000)
committerChris Hanson <org/chris-hanson/cph>
Fri, 30 Jun 2000 03:08:20 +0000 (03:08 +0000)
completed ended in a directory separator.

v7/src/imail/imail-file.scm

index d13d363064de4bc10b8039021c96323e4e8427a8..a0f778e1ea98f838faa6e7b5a1308c4ad2603ae3 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;; $Id: imail-file.scm,v 1.50 2000/06/30 02:59:54 cph Exp $
+;;; $Id: imail-file.scm,v 1.51 2000/06/30 03:08:20 cph Exp $
 ;;;
 ;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
 ;;;
@@ -46,7 +46,8 @@
     ((string <string>) (default-url <file-url>)
                       if-unique if-not-unique if-not-found)
   (pathname-complete-string
-   (merge-pathnames string (file-url-pathname default-url))
+   (merge-pathnames string
+                   (directory-pathname (file-url-pathname default-url)))
    (lambda (pathname) pathname #t)
    (lambda (string)
      (if-unique (->namestring string)))
@@ -59,7 +60,8 @@
     ((string <string>) (default-url <file-url>))
   (map ->namestring
        (pathname-completions-list
-       (merge-pathnames string (file-url-pathname default-url))
+       (merge-pathnames string
+                        (directory-pathname (file-url-pathname default-url)))
        (lambda (pathname) pathname #t))))
 
 ;;;; Server operations