File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11Changelog
22=========
33
4- ## 2011-10-25 0.2.20
4+ ## 2011-10-25 0.2.21
55--------------------
66* Add g:pymode_lint_minheight and g: pymode_lint_maxheight
77 options
8+ * Fix PyLintToggle
89
910## 2011-10-21 0.2.12
1011--------------------
Original file line number Diff line number Diff line change @@ -104,3 +104,13 @@ function! pymode_lint#Lint()
104104 endif
105105
106106endfunction
107+
108+
109+ fun ! pymode_lint#Toggle () " {{{
110+ let g: pymode_lint = g: pymode_lint ? 0 : 1
111+ if g: pymode_lint
112+ echomsg " PyLint enabled."
113+ else
114+ echomsg " PyLint disabled."
115+ endif
116+ endfunction " }}}
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ if g:pymode_lint
5050 endif
5151
5252 " DESC: Set commands
53- command ! - buffer PyLintToggle :let g: pymode_lint = g: pymode_lint ? 0 : 1
53+ command ! - buffer PyLintToggle :call pymode_lint#Toggle ()
5454 command ! - buffer PyLint :call pymode_lint#Lint ()
5555
5656endif
You can’t perform that action at this time.
0 commit comments