mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-08 03:24:47 +08:00
Merge branch 'bugfix-newtab-syntax' of git://github.com/artnez/jedi-vim into newtab
This commit is contained in:
@@ -97,8 +97,12 @@ function! jedi#new_buffer(path)
|
|||||||
Python vim.command('edit ' + jedi_vim.escape_file_path(vim.eval('a:path')))
|
Python vim.command('edit ' + jedi_vim.escape_file_path(vim.eval('a:path')))
|
||||||
endif
|
endif
|
||||||
" sometimes syntax is being disabled and the filetype not set.
|
" sometimes syntax is being disabled and the filetype not set.
|
||||||
syntax on
|
if !exists("g:syntax_on")
|
||||||
set filetype=python
|
syntax enable
|
||||||
|
endif
|
||||||
|
if &filetype != 'python'
|
||||||
|
set filetype=python
|
||||||
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! jedi#add_goto_window()
|
function! jedi#add_goto_window()
|
||||||
|
|||||||
Reference in New Issue
Block a user