summaryrefslogtreecommitdiffstats
path: root/vim
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2012-02-02 19:03:18 -0600
committerJesse Luehrs <doy@tozt.net>2012-02-02 19:07:30 -0600
commite3c36c6baa2be26fd33552cecc1fa8b846b67db7 (patch)
tree29e07f65bd2171f894f2830ebd25ce1904d0070f /vim
parent4277d4bde6afb45ee6f624ca28af007fc656b13b (diff)
downloadconf-e3c36c6baa2be26fd33552cecc1fa8b846b67db7.tar.gz
conf-e3c36c6baa2be26fd33552cecc1fa8b846b67db7.zip
more flymake fixups
Diffstat (limited to 'vim')
-rw-r--r--vim/ftplugin/perl.vim9
1 files changed, 7 insertions, 2 deletions
diff --git a/vim/ftplugin/perl.vim b/vim/ftplugin/perl.vim
index 593dc4b..6d573ef 100644
--- a/vim/ftplugin/perl.vim
+++ b/vim/ftplugin/perl.vim
@@ -79,11 +79,12 @@ function! HighlightCurrent()
let qlist = getqflist()
for q in qlist
let line = substitute(getline(q['lnum']), '\', '\\\\', 'g')
- exe 'syntax match CompileError /\%' . q['lnum'] . 'l' . line . '/'
+ exe 'syntax match CompileError /^\%' . q['lnum'] . 'l' . line . '$/'
endfor
highlight CompileError ctermbg=red guibg=red
endfunction
+let b:needs_clear = 0
function! UpdateStatusLine()
let qlist = getqflist()
let lnum = getpos('.')[1]
@@ -95,10 +96,14 @@ function! UpdateStatusLine()
let text = strpart(text, 0, width - 3) . '...'
endif
echo text
+ let b:needs_clear = 1
return
endif
endfor
- echo ""
+ if b:needs_clear
+ echo ""
+ let b:needs_clear = 0
+ endif
endfunction
au BufEnter,BufWritePost <buffer> call Make()