mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-06 10:54:22 +08:00
tests: move .cache to build, rename test/_utils.vim
This commit is contained in:
committed by
Dave Halter
parent
1c3078e9f9
commit
7894b38c0c
11
test/_utils.vim
Normal file
11
test/_utils.vim
Normal file
@@ -0,0 +1,11 @@
|
||||
function! CurrentBufferIsModule(module_name)
|
||||
return EndsWith(bufname('%'), a:module_name.'.py')
|
||||
endfunction
|
||||
|
||||
|
||||
function EndsWith(string, end)
|
||||
let l:should = len(a:string) - strlen(a:end)
|
||||
return l:should == stridx(a:string, a:end, should)
|
||||
endfunction
|
||||
|
||||
" vim: et:ts=4:sw=4
|
||||
Reference in New Issue
Block a user