aboutsummaryrefslogtreecommitdiffhomepage
path: root/vim
diff options
context:
space:
mode:
authorGravatar Bart Trojanowski <bart@jukie.net>2009-11-23 20:25:47 -0500
committerGravatar Bart Trojanowski <bart@jukie.net>2009-11-25 00:48:55 -0500
commitb740392b3de8fad233e1cf9db7c881208d76115c (patch)
treeee9dca9b2e1962649568d71c9960301ed84b0329 /vim
parentbe19c210ca1cb7e4fe1de5ab5847fabbedbacc9a (diff)
vim: include search terms when showing message
Diffstat (limited to 'vim')
-rw-r--r--vim/plugin/notmuch.vim8
1 files changed, 7 insertions, 1 deletions
diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim
index d2650855..aff49266 100644
--- a/vim/plugin/notmuch.vim
+++ b/vim/plugin/notmuch.vim
@@ -230,7 +230,13 @@ endfunction
function! s:NM_search_show_thread()
let id = <SID>NM_search_thread_id()
if id != ''
- call <SID>NM_cmd_show([id])
+ let words = [id]
+ if exists('b:nm_search_words')
+ let words = ['('] + b:nm_search_words + [')', 'and', id]
+ endif
+ if len(words)
+ call <SID>NM_cmd_show(words)
+ endif
endif
endfunction