aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-28 23:18:28 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-28 23:20:07 +1200
commitb34ef22b69be09ee100176a7362b1fbc70ca975f (patch)
treea052f7669949254429f7961618c5d7a0e7095921
parentce530a96d47bfb25f4eb36e410cbd601a4f2afe9 (diff)
downloadvim-squeeze-repeat-blanks-b34ef22b69be09ee100176a7362b1fbc70ca975f.tar.gz
vim-squeeze-repeat-blanks-b34ef22b69be09ee100176a7362b1fbc70ca975f.zip
Simplify load guard a bit
-rw-r--r--doc/squeeze_repeat_blanks.txt2
-rw-r--r--plugin/squeeze_repeat_blanks.vim5
2 files changed, 2 insertions, 5 deletions
diff --git a/doc/squeeze_repeat_blanks.txt b/doc/squeeze_repeat_blanks.txt
index 0eb4894..5a56c23 100644
--- a/doc/squeeze_repeat_blanks.txt
+++ b/doc/squeeze_repeat_blanks.txt
@@ -1,4 +1,4 @@
-*squeeze_repeat_blanks.txt* For Vim version 7.0 Last change: 2018 Aug 30
+*squeeze_repeat_blanks.txt* For Vim version 7.0 Last change: 2019 May 28
DESCRIPTION *squeeze_repeat_blanks*
diff --git a/plugin/squeeze_repeat_blanks.vim b/plugin/squeeze_repeat_blanks.vim
index fb85812..fa6e1a5 100644
--- a/plugin/squeeze_repeat_blanks.vim
+++ b/plugin/squeeze_repeat_blanks.vim
@@ -6,10 +6,7 @@
" Author: Tom Ryder <tom@sanctum.geek.nz>
" License: Same as Vim itself
"
-if exists('loaded_squeeze_repeat_blanks') || &compatible
- finish
-endif
-if !has('user_commands') || v:version < 700
+if exists('loaded_squeeze_repeat_blanks') || &compatible || v:version < 700
finish
endif
let loaded_squeeze_repeat_blanks = 1