Make return value of (cwd) a directory name
This commit is contained in:
parent
c232be69a1
commit
f531958b62
|
@ -50,7 +50,7 @@
|
|||
(lambda (file)
|
||||
(and (member (file-name-extension file) extensions)
|
||||
file))
|
||||
(or (to-complete-prefix to-complete) (cwd)))))
|
||||
(or (to-complete-prefix to-complete) (file-name-as-directory (cwd))))))
|
||||
|
||||
(define (complete-executables/path partial-name)
|
||||
(complete-with-filesystem-objects
|
||||
|
@ -85,7 +85,7 @@
|
|||
(if (file-directory? file)
|
||||
(file-name-as-directory file)
|
||||
file))))))
|
||||
(or (to-complete-prefix to-complete) (cwd)))))
|
||||
(or (to-complete-prefix to-complete) (file-name-as-directory (cwd))))))
|
||||
|
||||
;; #### no special treatment yet
|
||||
(define find-completions-for-redir find-completions-for-arg)
|
||||
|
|
Loading…
Reference in New Issue