mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2026-10-23 06:17:14 +08:00
tests: move .cache to build, rename test/_utils.vim
This commit is contained in:
1 parent
1c3078e9f9
commit
7894b38c0c
5 files changed
+5
-5
No files matched your search
@@ -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