mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +01:00
vim: store previous buffer number when starting to compose
This commit is contained in:
parent
651b215f0f
commit
05d76deb2e
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue