diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2018-12-26 11:19:25 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2018-12-26 11:19:25 +0100 |
commit | 678fc65514747c19f2a7c28880a428d8ae2e0505 (patch) | |
tree | f73593a9a56531b8fd19df1c5ed8fd98328e6530 /autoload/python | |
parent | aad3df96e795b314d31171fea54b7455076d1d7b (diff) | |
download | vim-polyglot-678fc65514747c19f2a7c28880a428d8ae2e0505.tar.gz vim-polyglot-678fc65514747c19f2a7c28880a428d8ae2e0505.zip |
Change i3 provider
Diffstat (limited to 'autoload/python')
-rw-r--r-- | autoload/python/utils.vim | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/autoload/python/utils.vim b/autoload/python/utils.vim new file mode 100644 index 00000000..51ba9ef1 --- /dev/null +++ b/autoload/python/utils.vim @@ -0,0 +1,21 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'python-compiler') == -1 + +" Sometimes Python issues debugging messages +" which don't belong to a call stack context +" this function filters these messages +function! python#utils#fix_qflist() " {{{ + let l:traceback = [] + let l:qflist = getqflist() + + for l:item in l:qflist + if !empty(l:item.type) + call add(l:traceback, l:item) + endif + endfor + + if !empty(l:traceback) + call setqflist(l:traceback) + endif +endfunction " }}} + +endif |