mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-03-14 03:25:15 +01:00
fix returning to folders after searching a few times
This commit is contained in:
parent
5a9d5fb200
commit
e8971117ff
1 changed files with 2 additions and 1 deletions
|
@ -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 <SID>NM_cmd_search(tags)
|
||||
|
|
Loading…
Add table
Reference in a new issue