vim: store previous buffer number when starting to compose
authorBart Trojanowski <bart@jukie.net>
Fri, 27 Nov 2009 06:02:50 +0000 (01:02 -0500)
committerBart Trojanowski <bart@jukie.net>
Fri, 27 Nov 2009 06:02:50 +0000 (01:02 -0500)
vim/plugin/notmuch.vim

index 63095ed55592842fe47e44ce49228a88f035e0f9..63a711fdf84368af8b1300e6d3367fdfaa026f61 100644 (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',
                                   \ '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)