We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8db39ec + d62bbc5 commit 88abbcbCopy full SHA for 88abbcb
1 file changed
autoload/ctrlp/line.vim
@@ -59,9 +59,11 @@ fu! ctrlp#line#accept(dict)
59
let bufnr = str2nr(get(info, 1))
60
if bufnr
61
cal ctrlp#acceptfile(mode, bufnr, get(info, 2))
62
- let @/ = input
63
- call search(input, 'c')
64
- call histadd("search", input)
+ if !empty(input)
+ let @/ = input
+ call search(input, 'c')
65
+ call histadd("search", input)
66
+ en
67
en
68
endf
69
0 commit comments