vim: don't execute search if it's cancelled
authorFelipe Contreras <felipe.contreras@gmail.com>
Mon, 14 Oct 2013 06:19:50 +0000 (01:19 -0500)
committerFelipe Contreras <felipe.contreras@gmail.com>
Wed, 20 Nov 2013 13:23:29 +0000 (07:23 -0600)
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
vim/notmuch.vim

index 64038eb5d498cd1b0c4ff31de8f8a88a5dd6367b..cf829a679b4049146f9311b5d6c449296767d165 100644 (file)
@@ -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')