Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Set quick-fix window title after syntax check

  • Loading branch information...
commit b5ea380560eafa260cd2c369fa5aad7c6589dc9a 1 parent 3c1ca42
@xolox authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 autoload/xolox/lua.vim
View
7 autoload/xolox/lua.vim
@@ -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'
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.