Skip to content

Commit

Permalink
fix(consult): no initial fill when in minibuffer #37
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Mar 23, 2023
1 parent 1d41152 commit 5c30bcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/me-completion.el
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
(defun +consult--dwim-first-arg-a (orig-fn &optional initial opt)
(apply orig-fn
(append
(if (called-interactively-p)
(if (and (called-interactively-p) (not (minibufferp)))
(list (or initial (+region-or-thing-at-point)))
(list initial))
(when opt (list opt)))))))
Expand All @@ -159,7 +159,7 @@
(apply orig-fn
(append
(list dir)
(if (called-interactively-p)
(if (and (called-interactively-p) (not (minibufferp)))
(list (or initial (+region-or-thing-at-point)))
(list initial))))))))

Expand Down

0 comments on commit 5c30bcd

Please sign in to comment.