Skip to content

Commit 37f251b

Browse files
committed
Version 0.2.21
1 parent 5499cc7 commit 37f251b

3 files changed

Lines changed: 13 additions & 2 deletions

File tree

Changelog.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
Changelog
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
--------------------

after/plugin/pymode_lint.vim

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,13 @@ function! pymode_lint#Lint()
104104
endif
105105

106106
endfunction
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 "}}}

ftplugin/python/pymode.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

5656
endif

0 commit comments

Comments
 (0)