vim: preserve previous buffer number when refreshing search

This commit is contained in:
Bart Trojanowski 2009-11-23 20:05:51 -05:00
parent 418a7f3108
commit 6bc0ec618d

View file

@ -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