From: Bart Trojanowski Date: Fri, 27 Nov 2009 19:02:25 +0000 (-0500) Subject: vim: fix off-by-one error when removing header from message to send out X-Git-Tag: 0.1~313^2~8 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=fd805c16c3fdcc4170a42d3cacb9b16cdfa11ff7 vim: fix off-by-one error when removing header from message to send out --- diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim index ef3260ed..a4d04e26 100644 --- a/vim/plugin/notmuch.vim +++ b/vim/plugin/notmuch.vim @@ -938,7 +938,7 @@ function! s:NM_compose_send() let lnum = lnum + 1 let line = getline(lnum) endwhile - let body_starts = lnum + 1 + let body_starts = lnum exec printf('0,%dd', body_starts) write