From da74049d85c55b5eb31432382c9172cb33ff9a40 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 1 Jun 2019 21:30:13 +1200 Subject: Shorten interface function name --- autoload/regex_escape.vim | 2 +- plugin/regex_escape.vim | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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..c430bf6 100644 --- a/plugin/regex_escape.vim +++ b/plugin/regex_escape.vim @@ -19,6 +19,6 @@ let loaded_regex_escape = 1 " Set up mapping nnoremap (RegexEscape) - \ regex_escape#Map() + \ regex_escape#() xnoremap (RegexEscape) - \ regex_escape#Map() + \ regex_escape#() -- cgit v1.2.3 From 99792cf683b7a4a78ce758e1361e481d16b1d620 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 1 Jun 2019 21:30:26 +1200 Subject: Abbreviate load guard --- plugin/regex_escape.vim | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugin/regex_escape.vim b/plugin/regex_escape.vim index c430bf6..b70d8e1 100644 --- a/plugin/regex_escape.vim +++ b/plugin/regex_escape.vim @@ -9,10 +9,7 @@ " Author: Tom Ryder " 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 -- cgit v1.2.3 From 516bd7c81effdc91b5f972a148441c60e634b458 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 1 Jun 2019 21:31:53 +1200 Subject: Bump VERSION --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 3eefcb9..9084fa2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.0 +1.1.0 -- cgit v1.2.3