aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-08-30 11:27:28 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-08-30 11:27:28 +1200
commit9b317246fe255a79f087ab940607c2c1651bdf12 (patch)
treea8b51d9f1c94cd5b842fb3768b5801beaded3dc4
parent0d654e3d9d97f346cfe09fa0f7b3a69fe1c14d48 (diff)
downloadvim-squeeze-repeat-blanks-9b317246fe255a79f087ab940607c2c1651bdf12.tar.gz
vim-squeeze-repeat-blanks-9b317246fe255a79f087ab940607c2c1651bdf12.zip
Correct misuse of get() function
-rw-r--r--autoload/squeeze_repeat_blanks.vim4
1 files changed, 1 insertions, 3 deletions
diff --git a/autoload/squeeze_repeat_blanks.vim b/autoload/squeeze_repeat_blanks.vim
index 5221093..1429fcf 100644
--- a/autoload/squeeze_repeat_blanks.vim
+++ b/autoload/squeeze_repeat_blanks.vim
@@ -9,9 +9,7 @@ function! squeeze_repeat_blanks#Squeeze(start, end) abort
let l:group = 0
" Pattern for what constitutes a 'blank'; configurable per-buffer
- let l:pattern = get(b:, 'squeeze_repeat_blanks_blank')
- \ ? b:squeeze_repeat_blanks_blank
- \ : '^$'
+ let l:pattern = get(b:, 'squeeze_repeat_blanks_blank', '^$')
" Iterate through the lines, collecting numbers to delete
for l:num in range(a:start, a:end)