aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-08-30 09:44:29 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-08-30 09:44:29 +1200
commitee2e981cf9f7aa5f9a2d98979d49201ad522ca71 (patch)
tree484737fd1f06c6ec273e5bf53e2eeda000ff399c
parent7ceb53710c370ce48a039f69c3e180103d19f025 (diff)
downloaddotfiles-ee2e981cf9f7aa5f9a2d98979d49201ad522ca71.tar.gz
Count quoted blank lines for mail line squeeze
-rw-r--r--vim/autoload/mail.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/autoload/mail.vim b/vim/autoload/mail.vim
index 0c3b7eb7..f498006b 100644
--- a/vim/autoload/mail.vim
+++ b/vim/autoload/mail.vim
@@ -73,7 +73,7 @@ function! mail#ContractMultipleBlankLines() abort
let l:deletions = []
let l:blank = 0
for l:num in range(1, line('$'))
- if strlen(getline(l:num)) > 0
+ if getline(l:num) !~# '^[> ]*$'
let l:blank = 0
elseif l:blank
let l:deletions += [l:num]