diff options
| author | Jameson Graef Rollins <jrollins@finestructure.net> | 2009-12-05 01:19:53 -0500 |
|---|---|---|
| committer | Jameson Graef Rollins <jrollins@finestructure.net> | 2009-12-05 01:20:11 -0500 |
| commit | e72a6176e3fc3fcf4b1696e3f0ee9cf66509fb4d (patch) | |
| tree | 7015964358d20934cbc78a50340870d9b81fcd1f /vim/plugin/notmuch.vim | |
| parent | 4edf37a1d5067197741b8dcb0bdb72ce4c299c05 (diff) | |
| parent | 263aeb82f0a1a69864ca41cff4dfa2ae0b8b3f05 (diff) | |
merge changes from upstream
Diffstat (limited to 'vim/plugin/notmuch.vim')
| -rw-r--r-- | vim/plugin/notmuch.vim | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim index b415f500..a226f203 100644 --- a/vim/plugin/notmuch.vim +++ b/vim/plugin/notmuch.vim @@ -275,6 +275,7 @@ function! s:NM_search_show_thread(everything) call add(words, ')') endif call <SID>NM_cmd_show(words) + let b:nm_show_everything = a:everything endfunction function! s:NM_search_prompt() @@ -408,7 +409,7 @@ endfunction function! s:NM_cmd_show(words) let prev_bufnr = bufnr('%') - let data = s:NM_run(['show'] + a:words) + let data = s:NM_run(['show', '--entire-thread'] + a:words) let lines = split(data, "\n") let info = s:NM_cmd_show_parse(lines) @@ -430,6 +431,7 @@ function! s:NM_cmd_show(words) endfunction function! s:NM_show_previous(can_change_thread, find_matching) + let everything = exists('b:nm_show_everything') ? b:nm_show_everything : 0 let info = b:nm_raw_info let lnum = line('.') for msg in reverse(copy(info['msgs'])) @@ -450,7 +452,7 @@ function! s:NM_show_previous(can_change_thread, find_matching) call <SID>NM_kill_this_buffer() if line('.') > 1 norm k - call <SID>NM_search_show_thread() + call <SID>NM_search_show_thread(everything) norm G call <SID>NM_show_previous(0, a:find_matching) else @@ -479,10 +481,11 @@ function! s:NM_show_next(can_change_thread, find_matching) endfunction function! s:NM_show_next_thread() + let everything = exists('b:nm_show_everything') ? b:nm_show_everything : 0 call <SID>NM_kill_this_buffer() if line('.') != line('$') norm j - call <SID>NM_search_show_thread() + call <SID>NM_search_show_thread(everything) else echo 'No more messages.' endif |
