From b78db85144fdc1c80bf922fe71864453b45da741 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 29 May 2019 13:34:53 +1200 Subject: Adjust function scoping --- autoload/colon_operator.vim | 2 +- plugin/colon_operator.vim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/colon_operator.vim b/autoload/colon_operator.vim index e5918d1..34689ef 100644 --- a/autoload/colon_operator.vim +++ b/autoload/colon_operator.vim @@ -9,7 +9,7 @@ endfunction " Clear command so that we get prompted to input it, set operator function, " and return motions to run it -function! colon_operator#Map() abort +function! colon_operator#() abort unlet! s:command set operatorfunc=colon_operator#Operatorfunc return 'g@' diff --git a/plugin/colon_operator.vim b/plugin/colon_operator.vim index d2df540..3379d04 100644 --- a/plugin/colon_operator.vim +++ b/plugin/colon_operator.vim @@ -13,4 +13,4 @@ let loaded_colon_operator = 1 " Set up mapping nnoremap \ (ColonOperator) - \ colon_operator#Map() + \ colon_operator#() -- cgit v1.2.3