replace function names starting with g: to CamelCase (fix #326)

This commit is contained in:
itchyny
2014-11-30 10:01:04 +09:00
parent 10cd4c6cfb
commit 6cc1d8c34a
3 changed files with 18 additions and 18 deletions

View File

@@ -1,9 +1,9 @@
function! g:current_buffer_is_module(module_name)
return g:ends_with(bufname('%'), a:module_name.'.py')
function! CurrentBufferIsModule(module_name)
return EndsWith(bufname('%'), a:module_name.'.py')
endfunction
function g:ends_with(string, end)
function EndsWith(string, end)
let l:should = len(a:string) - strlen(a:end)
return l:should == stridx(a:string, a:end, should)
endfunction