lib/vmail.vim in vmail-1.8.0 vs lib/vmail.vim in vmail-1.8.1
- old
+ new
@@ -571,11 +571,13 @@
echo a:command
let res = system(a:command)
let previous_winnr = winnr()
split compose_message.txt
- exec previous_winnr . "wincmd w"
- close!
+ if winnr('$') > 1
+ exec previous_winnr . "wincmd w"
+ close!
+ end
setlocal modifiable
" TODO maybe later save backups?
setlocal buftype=nowrite
silent 1,$delete