aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-08-30 11:27:59 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-08-30 11:27:59 +1200
commit95bbf76cf3461235af198979d9a4ea1d14302ef8 (patch)
tree31531ad689f5594c318777f5fd1d8eab2a8c6a6c
parent0d654e3d9d97f346cfe09fa0f7b3a69fe1c14d48 (diff)
parent6b5909a38e06c7ff9057a0996205adda3730b350 (diff)
downloadvim-squeeze-repeat-blanks-95bbf76cf3461235af198979d9a4ea1d14302ef8.tar.gz
vim-squeeze-repeat-blanks-95bbf76cf3461235af198979d9a4ea1d14302ef8.zip
Merge branch 'hotfix/v0.1.1' into develop
* hotfix/v0.1.1: Bump VERSION Correct misuse of get() function
-rw-r--r--VERSION2
-rw-r--r--autoload/squeeze_repeat_blanks.vim4
2 files changed, 2 insertions, 4 deletions
diff --git a/VERSION b/VERSION
index 6e8bf73..17e51c3 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.1.0
+0.1.1
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)