Don't yank line at point for blank project searches

This commit is contained in:
Henrik Lissner 2017-10-04 18:07:26 +02:00
parent b825b0cd0c
commit 59f39576de
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -26,9 +26,11 @@
(all-files-p +ivy--file-search-all-files-p)
(query
(or query
(and beg end
(> (abs (- end beg)) 1)
(rxt-quote-pcre (buffer-substring-no-properties beg end)))
(if (evil-visual-state-p)
(and beg end
(> (abs (- end beg)) 1)
(rxt-quote-pcre (buffer-substring-no-properties beg end)))
+ivy--file-last-search)
+ivy--file-last-search))
(prompt
(format "%s%%s %s"