From 568a541262f4319c790f00e0a767cdf15237c0d7 Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Mon, 14 Oct 2013 01:19:50 -0500 Subject: [PATCH] vim: don't execute search if it's cancelled Signed-off-by: Felipe Contreras --- vim/notmuch.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vim/notmuch.vim b/vim/notmuch.vim index 64038eb5..cf829a67 100644 --- a/vim/notmuch.vim +++ b/vim/notmuch.vim @@ -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') -- 2.43.0