From: Bart Trojanowski Date: Tue, 24 Nov 2009 01:25:47 +0000 (-0500) Subject: vim: include search terms when showing message X-Git-Tag: 0.1~313^2~47 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=b740392b3de8fad233e1cf9db7c881208d76115c vim: include search terms when showing message --- 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 = NM_search_thread_id() if id != '' - call 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 NM_cmd_show(words) + endif endif endfunction