Skip to content

Commit

Permalink
Mark private function with leading underscore
Browse files Browse the repository at this point in the history
  • Loading branch information
mnussbaum committed Jun 12, 2018
1 parent c6d757f commit 657be6b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/nerdtree/key_map.vim
Expand Up @@ -3,8 +3,8 @@
let s:KeyMap = {}
let g:NERDTreeKeyMap = s:KeyMap

"FUNCTION: KeyMap.all() {{{1
function! s:KeyMap.all()
"FUNCTION: KeyMap._all() {{{1
function! s:KeyMap._all()
if !exists("s:keyMaps")
let s:keyMaps = {}
endif
Expand All @@ -14,7 +14,7 @@ endfunction

"FUNCTION: KeyMap.All() {{{1
function! s:KeyMap.All()
let sortedKeyMaps = values(s:KeyMap.all())
let sortedKeyMaps = values(s:KeyMap._all())
call sort(sortedKeyMaps, s:KeyMap.Compare, s:KeyMap)

return sortedKeyMaps
Expand All @@ -36,12 +36,12 @@ endfunction

"FUNCTION: KeyMap.FindFor(key, scope) {{{1
function! s:KeyMap.FindFor(key, scope)
return get(s:KeyMap.all(), a:key . a:scope, {})
return get(s:KeyMap._all(), a:key . a:scope, {})
endfunction

"FUNCTION: KeyMap.BindAll() {{{1
function! s:KeyMap.BindAll()
for i in values(s:KeyMap.all())
for i in values(s:KeyMap._all())
call i.bind()
endfor
endfunction
Expand Down

0 comments on commit 657be6b

Please sign in to comment.