vim: store previous buffer number when starting to compose

This commit is contained in:
Bart Trojanowski 2009-11-27 01:02:50 -05:00
parent 651b215f0f
commit 05d76deb2e

View file

@ -936,6 +936,7 @@ function! s:NM_cmd_compose(words, body_lines)
call <SID>NM_newFileBuffer(g:notmuch_compose_temp_file_dir, '%s.mail', call <SID>NM_newFileBuffer(g:notmuch_compose_temp_file_dir, '%s.mail',
\ 'compose', lines) \ 'compose', lines)
setlocal bufhidden=hide setlocal bufhidden=hide
let b:nm_prev_bufnr = prev_bufnr
call <SID>NM_set_map('n', g:notmuch_compose_nmaps) call <SID>NM_set_map('n', g:notmuch_compose_nmaps)
call <SID>NM_set_map('i', g:notmuch_compose_imaps) call <SID>NM_set_map('i', g:notmuch_compose_imaps)