From c00622ab9e0be59d8ac4b6b8f6e366e0bfa8e337 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 29 May 2019 13:25:21 +1200 Subject: Adjust function visibility --- autoload/digraph_search.vim | 6 +++--- plugin/digraph_search.vim | 2 +- 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 \ (DigraphSearch) - \ :call digraph_search#Search() + \ :call digraph_search#() -- cgit v1.2.3