aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-29 13:34:53 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-29 13:34:53 +1200
commitb78db85144fdc1c80bf922fe71864453b45da741 (patch)
treef0921d5f2c2a7965b092f374f2dc54ca6ae5bd4c
parent3d9b57820428e79a1021bc5780b39cd1117d1548 (diff)
downloadvim-colon-operator-b78db85144fdc1c80bf922fe71864453b45da741.tar.gz
vim-colon-operator-b78db85144fdc1c80bf922fe71864453b45da741.zip
Adjust function scoping
-rw-r--r--autoload/colon_operator.vim2
-rw-r--r--plugin/colon_operator.vim2
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 <expr> 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 <expr> <silent> <unique>
\ <Plug>(ColonOperator)
- \ colon_operator#Map()
+ \ colon_operator#()