mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 09:24:54 +01:00
vim: preserve previous buffer number when refreshing search
This commit is contained in:
parent
418a7f3108
commit
6bc0ec618d
1 changed files with 2 additions and 0 deletions
|
@ -326,8 +326,10 @@ endfunction
|
||||||
|
|
||||||
function! s:NM_search_refresh_view()
|
function! s:NM_search_refresh_view()
|
||||||
let lno = line('.')
|
let lno = line('.')
|
||||||
|
let prev_bufnr = b:nm_prev_bufnr
|
||||||
setlocal bufhidden=delete
|
setlocal bufhidden=delete
|
||||||
call <SID>NM_cmd_search(b:nm_search_words)
|
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
|
" FIXME: should find the line of the thread we were on if possible
|
||||||
exec printf('norm %dG', lno)
|
exec printf('norm %dG', lno)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
Loading…
Reference in a new issue