aboutsummaryrefslogtreecommitdiffhomepage
path: root/vim/plugin
diff options
context:
space:
mode:
authorGravatar Bart Trojanowski <bart@jukie.net>2009-11-27 01:02:50 -0500
committerGravatar Bart Trojanowski <bart@jukie.net>2009-11-27 01:02:50 -0500
commit05d76deb2eb3aaf09444e8cfb59a438c3d774bea (patch)
treefc65c26c045184423181bc0e38553ca3cdf9e389 /vim/plugin
parent651b215f0f6d4f220ff67941dbecd54692382472 (diff)
vim: store previous buffer number when starting to compose
Diffstat (limited to 'vim/plugin')
-rw-r--r--vim/plugin/notmuch.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim
index 63095ed5..63a711fd 100644
--- a/vim/plugin/notmuch.vim
+++ b/vim/plugin/notmuch.vim
@@ -936,6 +936,7 @@ function! s:NM_cmd_compose(words, body_lines)
call <SID>NM_newFileBuffer(g:notmuch_compose_temp_file_dir, '%s.mail',
\ 'compose', lines)
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('i', g:notmuch_compose_imaps)