Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Set quick-fix window title after syntax check

  • Loading branch information...
commit b5ea380560eafa260cd2c369fa5aad7c6589dc9a 1 parent 3c1ca42
Peter Odding authored June 18, 2011

Showing 1 changed file with 6 additions and 1 deletion. Show diff stats Hide diff stats

  1. 7  autoload/xolox/lua.vim
7  autoload/xolox/lua.vim
@@ -3,7 +3,7 @@
3 3
 " Last Change: June 18, 2011
4 4
 " URL: http://peterodding.com/code/vim/lua-ftplugin
5 5
 
6  
-let s:version = '0.6.12'
  6
+let s:version = '0.6.13'
7 7
 let s:miscdir = expand('<sfile>:p:h:h:h') . '/misc/lua-ftplugin'
8 8
 let s:omnicomplete_script = s:miscdir . '/omnicomplete.lua'
9 9
 let s:globals_script = s:miscdir . '/globals.lua'
@@ -88,8 +88,13 @@ function! xolox#lua#checksyntax() " {{{1
88 88
       let &makeprg = compiler_name
89 89
       let &errorformat = error_format
90 90
       let winnr = winnr()
  91
+      let filename = expand('%:t')
91 92
       execute 'silent make!' compiler_args shellescape(expand('%'))
92 93
       cwindow
  94
+      if winnr() != winnr
  95
+        let message = ['Syntax errors reported by', compiler_name, compiler_args, filename]
  96
+        let w:quickfix_title = join(message)
  97
+      endif
93 98
       execute winnr . 'wincmd w'
94 99
       call s:highlighterrors()
95 100
     finally

0 notes on commit b5ea380

Please sign in to comment.
Something went wrong with that request. Please try again.