diff options
author | Bart Trojanowski <bart@jukie.net> | 2009-11-23 20:05:51 -0500 |
---|---|---|
committer | Bart Trojanowski <bart@jukie.net> | 2009-11-25 00:48:55 -0500 |
commit | 6bc0ec618d55aed84b1b0a810c0f1ac877a4e430 (patch) | |
tree | b9e3cd78b2b8fdfd98ad582cefe6d2cbb3805385 /vim/plugin | |
parent | 418a7f3108273c5b8a0ff36ab1bb3b9886089648 (diff) |
vim: preserve previous buffer number when refreshing search
Diffstat (limited to 'vim/plugin')
-rw-r--r-- | vim/plugin/notmuch.vim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim index 7ba35f3..0addd76 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 <SID>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 |