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() "{{{
112
112
if b: pymode_modified && g: pymode_rope_regenerate_on_write
113
113
call pymode#rope#regenerate ()
114
114
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 )
116
116
call pymode#lint#check ()
117
117
endif
118
118
endfunction " }}}
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'*
276
276
>
277
277
let g:pymode_lint_on_write = 1
278
278
279
+ Check code on every save (every) *'g:pymode_lint_unmodified'*
280
+ >
281
+ let g:pymode_lint_unmodified = 1
282
+
279
283
Check code when editting (onfly) *'g:pymode_lint_on_fly'*
280
284
>
281
285
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)
83
83
call pymode#default (' g:pymode_lint_async' , 1 )
84
84
call pymode#default (' g:pymode_lint_async_updatetime' , 1000 )
85
85
86
- " Check code every save.
86
+ " Check code every save if file has been modified
87
87
call pymode#default (" g:pymode_lint_on_write" , 1 )
88
88
89
+ " Check code every save (every)
90
+ call pymode#default (" g:pymode_lint_unmodified" , 0 )
91
+
89
92
" Check code on fly
90
93
call pymode#default (" g:pymode_lint_on_fly" , 0 )
91
94
You can’t perform that action at this time.
0 commit comments