X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=vim%2Fplugin%2Fnotmuch.vim;h=0addd76aca9bd1f9716fb52daf7cfa8e86988836;hp=7ba35f37c9ebecdde0352ea74d3c227b0a9fe20c;hb=6bc0ec618d55aed84b1b0a810c0f1ac877a4e430;hpb=e9ca8e5037a4292443eb1cac8540757f118b83f4 diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim index 7ba35f37..0addd76a 100644 --- a/vim/plugin/notmuch.vim +++ b/vim/plugin/notmuch.vim @@ -326,8 +326,10 @@ endfunction function! s:NM_search_refresh_view() let lno = line('.') + let prev_bufnr = b:nm_prev_bufnr setlocal bufhidden=delete call NM_cmd_search(b:nm_search_words) + let b:nm_prev_bufnr = prev_bufnr " FIXME: should find the line of the thread we were on if possible exec printf('norm %dG', lno) endfunction