@@ -10,6 +10,7 @@ fun! g:PymodeLocList.init(raw_list) "{{{
1010let obj= copy (self )
1111let loc_list= filter (copy (a: raw_list ),' v:val["valid"] == 1' )
1212call obj.clear ()
13+ let obj._title= ' CodeCheck'
1314return obj
1415endfunction " }}}
1516
@@ -18,7 +19,6 @@ fun! g:PymodeLocList.current() "{{{
1819if ! exists (" b:pymode_loclist" )
1920let b: pymode_loclist= g: PymodeLocList .init ([])
2021endif
21- let b: pymode_loclist ._bufnr= bufnr (' .' )
2222return b: pymode_loclist
2323endfunction " }}}
2424
@@ -31,7 +31,7 @@ endfunction "}}}
3131fun ! g: PymodeLocList .clear ()" {{{
3232let self ._loclist= []
3333let self ._messages= {}
34- let self ._bufnr = bufnr ( ' ' )
34+ let self ._name = expand ( ' %:t ' )
3535endfunction " }}}
3636
3737
@@ -62,3 +62,19 @@ fun! g:PymodeLocList.filter(filters) "{{{
6262endfor
6363return loclist
6464endfunction " }}}
65+
66+
67+ fun ! g: PymodeLocList .show ()" {{{
68+ call setloclist (0 ,self ._loclist)
69+ if self .is_empty ()
70+ lclose
71+ else
72+ let num= winnr ()
73+ execute " lopen" .g: pymode_quickfix_maxheight
74+ execute max ([min ([line (" $" ),g: pymode_quickfix_maxheight ]),g: pymode_quickfix_minheight ]) ." wincmd _"
75+ if num!= winnr ()
76+ call setwinvar (winnr (),' quickfix_title' ,self ._title .' <' .self ._name .' >' )
77+ wincmd p
78+ endif
79+ end
80+ endfunction " }}}