Skip to content

Commit 810aec3

Browse files
committed
Fix modeline
1 parent 0b8e492 commit 810aec3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

autoload/pymode.vim

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ fun! pymode#Modeline() "{{{
182182
let {'b:pymode_'.name} = value
183183
endfor
184184
endif
185-
au BufRead <buffer> call pymode#Modeline()
186185
endfunction "}}}
187186

188187

ftplugin/python/init-pymode.vim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,4 +349,9 @@ call pymode#Default("g:pymode_options", 1)
349349
" OPTION: g:pymode_updatetime -- int. Set updatetime for async pymode's operation
350350
call pymode#Default("g:pymode_updatetime", 1000)
351351

352+
" OPTION: g:pymode_modeline -- int. Support pymode modeline.
353+
if pymode#Default('g:pymode_modeline', 1) || !g:pymode_modeline
354+
au BufRead *.py call pymode#Modeline()
355+
endif
356+
352357
" vim: fdm=marker:fdl=0

0 commit comments

Comments
 (0)