File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ fun! pymode#buffer_post_write() "{{{
112112 if b: pymode_modified && g: pymode_rope_regenerate_on_write
113113 call pymode#rope#regenerate ()
114114 endif
115- if b: pymode_modified && g: pymode_lint_on_write
115+ if g: pymode_lint_on_write && ( b: pymode_modified || g: pymode_lint_unmodified )
116116 call pymode#lint#check ()
117117 endif
118118endfunction " }}}
Original file line number Diff line number Diff line change @@ -276,6 +276,10 @@ Check code on every save (if file has been modified) *'g:pymode_lint_on_write'*
276276>
277277 let g:pymode_lint_on_write = 1
278278
279+ Check code on every save (every) *'g:pymode_lint_unmodified'*
280+ >
281+ let g:pymode_lint_unmodified = 1
282+
279283 Check code when editting (onfly) *'g:pymode_lint_on_fly'*
280284>
281285 let g:pymode_lint_on_fly = 1
Original file line number Diff line number Diff line change @@ -83,9 +83,12 @@ call pymode#default('g:pymode_lint', 1)
8383call pymode#default (' g:pymode_lint_async' , 1 )
8484call pymode#default (' g:pymode_lint_async_updatetime' , 1000 )
8585
86- " Check code every save.
86+ " Check code every save if file has been modified
8787call pymode#default (" g:pymode_lint_on_write" , 1 )
8888
89+ " Check code every save (every)
90+ call pymode#default (" g:pymode_lint_unmodified" , 0 )
91+
8992" Check code on fly
9093call pymode#default (" g:pymode_lint_on_fly" , 0 )
9194
You can’t perform that action at this time.
0 commit comments