lib/vmail.vim in vmail-2.2.9 vs lib/vmail.vim in vmail-2.3.0
- old
+ new
@@ -631,9 +631,10 @@
function! s:send_message()
let mail = join(getline(1,'$'), "\n")
echo "Sending message"
let res = system(s:deliver_command, mail)
if match(res, '^Failed') == -1
+ write!
call s:close_and_focus_list_window()
endif
echom substitute(res, '[\s\r\n]\+$', '', '')
redraw
endfunction