Don't yank line at point for blank project searches
This commit is contained in:
parent
b825b0cd0c
commit
59f39576de
1 changed files with 5 additions and 3 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue