mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48: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()
|
||||
let text = input('Search: ')
|
||||
if text == ""
|
||||
return
|
||||
endif
|
||||
setlocal modifiable
|
||||
ruby << EOF
|
||||
$cur_search = VIM::evaluate('text')
|
||||
|
|
Loading…
Reference in a new issue