vim: don't execute search if it's cancelled

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
Felipe Contreras 2013-10-14 01:19:50 -05:00
parent ce5f3f3809
commit 568a541262

View file

@ -208,6 +208,9 @@ endfunction
function! s:search_search_prompt() function! s:search_search_prompt()
let text = input('Search: ') let text = input('Search: ')
if text == ""
return
endif
setlocal modifiable setlocal modifiable
ruby << EOF ruby << EOF
$cur_search = VIM::evaluate('text') $cur_search = VIM::evaluate('text')