Skip to content

Commit b0bec50

Browse files
committed
Fixed need input for non-detail flag.
1 parent df167dc commit b0bec50

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ivy-file-preview.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@ FN is the file path. POS can either be one of the following type:
189189

190190
(defun ivy-file-preview--after-select (&rest _)
191191
"Execution after selection."
192-
(if (or (string-empty-p ivy-text) (ivy-file-preview--no-candidates-p))
192+
(if (and ivy-file-preview-details
193+
(or (string-empty-p ivy-text) (ivy-file-preview--no-candidates-p)))
193194
(progn
194195
(ivy-file-preview--delete-overlays)
195196
(ivy-file-preview--back-to-pos))

0 commit comments

Comments
 (0)