aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-01 21:32:26 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-01 21:32:26 +1200
commit9473dfab9dc8a4b049c940a9575d1cb1f3ee6ea1 (patch)
tree110c529e486cfe02b63dbb267d4060dc92de08ce
parent745dc4060a75bd0b1ec4f0667a309de61cf1d668 (diff)
parent516bd7c81effdc91b5f972a148441c60e634b458 (diff)
downloadvim-regex-escape-9473dfab9dc8a4b049c940a9575d1cb1f3ee6ea1.tar.gz
vim-regex-escape-9473dfab9dc8a4b049c940a9575d1cb1f3ee6ea1.zip
Merge branch 'release/v1.1.0'HEADv1.1.0master
* release/v1.1.0: Abbreviate load guard Shorten interface function name
-rw-r--r--VERSION2
-rw-r--r--autoload/regex_escape.vim2
-rw-r--r--plugin/regex_escape.vim9
3 files changed, 5 insertions, 8 deletions
diff --git a/VERSION b/VERSION
index 3eefcb9..9084fa2 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.0.0
+1.1.0
diff --git a/autoload/regex_escape.vim b/autoload/regex_escape.vim
index b57392a..3884374 100644
--- a/autoload/regex_escape.vim
+++ b/autoload/regex_escape.vim
@@ -62,7 +62,7 @@ endfunction
" Expression mapping target function; set the 'operatorfunc' and return the
" key sequence to active it
-function! regex_escape#Map() abort
+function! regex_escape#() abort
set operatorfunc=regex_escape#Operatorfunc
return 'g@'
endfunction
diff --git a/plugin/regex_escape.vim b/plugin/regex_escape.vim
index 5a44e51..b70d8e1 100644
--- a/plugin/regex_escape.vim
+++ b/plugin/regex_escape.vim
@@ -9,16 +9,13 @@
" Author: Tom Ryder <tom@sanctum.geek.nz>
" License: Same as Vim itself
"
-if exists('loaded_regex_escape') || &compatible
- finish
-endif
-if v:version < 700
+if exists('loaded_regex_escape') || &compatible || v:version < 700
finish
endif
let loaded_regex_escape = 1
" Set up mapping
nnoremap <expr> <Plug>(RegexEscape)
- \ regex_escape#Map()
+ \ regex_escape#()
xnoremap <expr> <Plug>(RegexEscape)
- \ regex_escape#Map()
+ \ regex_escape#()