Skip to content

Commit

Permalink
Set quick-fix window title after syntax check
Browse files Browse the repository at this point in the history
  • Loading branch information
xolox committed Jun 18, 2011
1 parent 3c1ca42 commit b5ea380
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion autoload/xolox/lua.vim
Expand Up @@ -3,7 +3,7 @@
" Last Change: June 18, 2011
" URL: http://peterodding.com/code/vim/lua-ftplugin

let s:version = '0.6.12'
let s:version = '0.6.13'
let s:miscdir = expand('<sfile>:p:h:h:h') . '/misc/lua-ftplugin'
let s:omnicomplete_script = s:miscdir . '/omnicomplete.lua'
let s:globals_script = s:miscdir . '/globals.lua'
Expand Down Expand Up @@ -88,8 +88,13 @@ function! xolox#lua#checksyntax() " {{{1
let &makeprg = compiler_name
let &errorformat = error_format
let winnr = winnr()
let filename = expand('%:t')
execute 'silent make!' compiler_args shellescape(expand('%'))
cwindow
if winnr() != winnr
let message = ['Syntax errors reported by', compiler_name, compiler_args, filename]
let w:quickfix_title = join(message)
endif
execute winnr . 'wincmd w'
call s:highlighterrors()
finally
Expand Down

0 comments on commit b5ea380

Please sign in to comment.