From: Bart Trojanowski Date: Sun, 22 Nov 2009 04:17:41 +0000 (-0500) Subject: fix returning to folders after searching a few times X-Git-Tag: 0.1~313^2~63 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e8971117ff1c71c8eee85ba87ad9f91bb1184108;p=notmuch.git fix returning to folders after searching a few times --- diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim index 308fc05d..d786cedf 100644 --- a/vim/plugin/notmuch.vim +++ b/vim/plugin/notmuch.vim @@ -241,12 +241,13 @@ function! s:NM_search_prompt() else let tags = s:notmuch_initial_search_words_defaults endif - let prev_bufnr = bufnr('%') if b:nm_type == 'search' " TODO: we intend to replace the current buffer, " ... maybe we could just clear it + let prev_bufnr = b:nm_prev_bufnr setlocal bufhidden=delete else + let prev_bufnr = bufnr('%') setlocal bufhidden=hide endif call NM_cmd_search(tags)