aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-29 13:25:21 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-29 13:25:21 +1200
commitc00622ab9e0be59d8ac4b6b8f6e366e0bfa8e337 (patch)
tree7cf03cb26780244663cece4c88e77762cd44cdc7
parentMerge branch 'release/v0.2.0' into develop (diff)
downloadvim-digraph-search-c00622ab9e0be59d8ac4b6b8f6e366e0bfa8e337.tar.gz
vim-digraph-search-c00622ab9e0be59d8ac4b6b8f6e366e0bfa8e337.zip
Adjust function visibility
-rw-r--r--autoload/digraph_search.vim6
-rw-r--r--plugin/digraph_search.vim2
2 files changed, 4 insertions, 4 deletions
diff --git a/autoload/digraph_search.vim b/autoload/digraph_search.vim
index 46b10a3..bae4973 100644
--- a/autoload/digraph_search.vim
+++ b/autoload/digraph_search.vim
@@ -1,5 +1,5 @@
" Search for digraphs
-function! digraph_search#Search() abort
+function! digraph_search#() abort
" Get the search string
let search = input('Digraph search: ')
@@ -9,7 +9,7 @@ function! digraph_search#Search() abort
" Look for the uppercased search in the table
let results = []
- for digraph in digraph_search#Digraphs()
+ for digraph in s:Digraphs()
if stridx(digraph['name'], toupper(search)) != -1
call add(results, digraph)
endif
@@ -31,7 +31,7 @@ function! digraph_search#Search() abort
endfunction
" Get private memoized list of digraph dictionary objects
-function! digraph_search#Digraphs() abort
+function! s:Digraphs() abort
" We haven't been called yet; get the digraph list
if !exists('s:digraphs')
diff --git a/plugin/digraph_search.vim b/plugin/digraph_search.vim
index 1923eb2..9daeba2 100644
--- a/plugin/digraph_search.vim
+++ b/plugin/digraph_search.vim
@@ -16,4 +16,4 @@ let loaded_digraph_search = 1
" Set up mapping
inoremap <silent> <unique>
\ <Plug>(DigraphSearch)
- \ <C-O>:call digraph_search#Search()<CR>
+ \ <C-O>:call digraph_search#()<CR>