aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-05-09 17:22:52 +1200
committerTom Ryder <tom@sanctum.geek.nz>2020-05-09 17:22:52 +1200
commit0103327532aa888311e448e5ffe279f6aaa327fb (patch)
tree96b48618cded23f51be5d408817278e037361632
parent2aab2d181c06da4f8da9fdb405a658b10f5d0f51 (diff)
parentaf3c4e13ae8ac1be86ebdf0659cf3ac9d1bf2e41 (diff)
downloadvim-squeeze-repeat-blanks-0103327532aa888311e448e5ffe279f6aaa327fb.tar.gz
vim-squeeze-repeat-blanks-0103327532aa888311e448e5ffe279f6aaa327fb.zip
Merge branch 'hotfix/v0.6.1' into develop
* hotfix/v0.6.1: Copy list of deletions before reversing it
-rw-r--r--VERSION2
-rw-r--r--autoload/squeeze_repeat_blanks.vim2
2 files changed, 2 insertions, 2 deletions
diff --git a/VERSION b/VERSION
index a918a2a..ee6cdce 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.6.0
+0.6.1
diff --git a/autoload/squeeze_repeat_blanks.vim b/autoload/squeeze_repeat_blanks.vim
index 9a9eb8b..11550e7 100644
--- a/autoload/squeeze_repeat_blanks.vim
+++ b/autoload/squeeze_repeat_blanks.vim
@@ -35,7 +35,7 @@ function! squeeze_repeat_blanks#(start, end) abort
" Delete each flagged line, in reverse order so that renumbering doesn't
" bite us
- for num in reverse(deletions)
+ for num in reverse(copy(deletions))
silent execute num . 'delete'
endfor