diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-01 21:39:52 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-01 21:39:52 +1200 |
commit | 4730f4573219c724da21ccdd981f4771a229d810 (patch) | |
tree | ca2ac4b77a1b4b1c8fe55a5ee4b4e9c4ee2cae97 | |
parent | Adjust quoting for legibility (diff) | |
download | vim-replace-operator-4730f4573219c724da21ccdd981f4771a229d810.tar.gz vim-replace-operator-4730f4573219c724da21ccdd981f4771a229d810.zip |
Adjust name of autoloaded interface function
-rw-r--r-- | autoload/replace_operator.vim | 2 | ||||
-rw-r--r-- | plugin/replace_operator.vim | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/autoload/replace_operator.vim b/autoload/replace_operator.vim index 17498d7..96e7c90 100644 --- a/autoload/replace_operator.vim +++ b/autoload/replace_operator.vim @@ -44,7 +44,7 @@ function! replace_operator#Operatorfunc(type) abort endfunction " Helper function for normal mode map -function! replace_operator#Map(register) abort +function! replace_operator#(register) abort let s:register = a:register set operatorfunc=replace_operator#Operatorfunc return 'g@' diff --git a/plugin/replace_operator.vim b/plugin/replace_operator.vim index 2fc935c..1146002 100644 --- a/plugin/replace_operator.vim +++ b/plugin/replace_operator.vim @@ -15,6 +15,6 @@ let loaded_replace_operator = 1 " Set up mapping nnoremap <expr> <Plug>(ReplaceOperator) - \ replace_operator#Map(v:register) + \ replace_operator#(v:register) xnoremap <expr> <Plug>(ReplaceOperator) - \ replace_operator#Map(v:register) + \ replace_operator#(v:register) |