summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
1cdb6ed)
* ivy.el (ivy-partial-or-done): Switch `default-directory' so that
`minibuffer-complete' is aware of it. Select a directory only if there
is only one.
candidate."
(interactive)
(if (eq (ivy-state-collection ivy-last) 'read-file-name-internal)
candidate."
(interactive)
(if (eq (ivy-state-collection ivy-last) 'read-file-name-internal)
+ (let ((default-directory ivy--directory))
(minibuffer-complete)
(setq ivy-text (ivy--input))
(minibuffer-complete)
(setq ivy-text (ivy--input))
- (when (file-directory-p ivy-text)
+ (when (and (file-directory-p ivy-text)
+ (= ivy--length 1))
(ivy--cd (expand-file-name ivy-text))))
(or (ivy-partial)
(if (eq this-command last-command)
(ivy--cd (expand-file-name ivy-text))))
(or (ivy-partial)
(if (eq this-command last-command)