mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 09:24:54 +01:00
vim: include search terms when showing message
This commit is contained in:
parent
be19c210ca
commit
b740392b3d
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue