mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 09:24:54 +01:00
vim: cleanup a few minor glitches
This commit is contained in:
parent
54a7df40a2
commit
384037285f
1 changed files with 2 additions and 3 deletions
|
@ -242,13 +242,13 @@ function! s:NM_search_prompt()
|
||||||
else
|
else
|
||||||
let tags = s:notmuch_initial_search_words_defaults
|
let tags = s:notmuch_initial_search_words_defaults
|
||||||
endif
|
endif
|
||||||
|
let prev_bufnr = bufnr('%')
|
||||||
if b:nm_type == 'search'
|
if b:nm_type == 'search'
|
||||||
" TODO: we intend to replace the current buffer,
|
" TODO: we intend to replace the current buffer,
|
||||||
" ... maybe we could just clear it
|
" ... maybe we could just clear it
|
||||||
let prev_bufnr = b:nm_prev_bufnr
|
let prev_bufnr = b:nm_prev_bufnr
|
||||||
setlocal bufhidden=delete
|
setlocal bufhidden=delete
|
||||||
else
|
else
|
||||||
let prev_bufnr = bufnr('%')
|
|
||||||
setlocal bufhidden=hide
|
setlocal bufhidden=hide
|
||||||
endif
|
endif
|
||||||
call <SID>NM_cmd_search(tags)
|
call <SID>NM_cmd_search(tags)
|
||||||
|
@ -288,7 +288,6 @@ function! s:NM_search_filter_helper(prompt, prefix)
|
||||||
let tags = split(text)
|
let tags = split(text)
|
||||||
map(tags, 'and a:prefix . v:val')
|
map(tags, 'and a:prefix . v:val')
|
||||||
let tags = b:nm_search_words + tags
|
let tags = b:nm_search_words + tags
|
||||||
echo tags
|
|
||||||
|
|
||||||
let prev_bufnr = bufnr('%')
|
let prev_bufnr = bufnr('%')
|
||||||
setlocal bufhidden=hide
|
setlocal bufhidden=hide
|
||||||
|
@ -780,7 +779,7 @@ function! s:NM_kill_this_buffer()
|
||||||
setlocal bufhidden=delete
|
setlocal bufhidden=delete
|
||||||
exec printf(":buffer %d", b:nm_prev_bufnr)
|
exec printf(":buffer %d", b:nm_prev_bufnr)
|
||||||
else
|
else
|
||||||
echo "Nothing to kill."
|
echo "This is the last buffer; use :q<CR> to quit."
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue