mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 20:38:08 +01:00
vim: don't execute search if it's cancelled
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
parent
ce5f3f3809
commit
568a541262
1 changed files with 3 additions and 0 deletions
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue