Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Bug fix: Focus doesn't return to original window

When there's already a split window above the Lua buffer (e.g. a help
buffer) and the plug-in opens or updates the location list for the Lua
buffer it switches to the wrong buffer afterwards, which causes Vim to
emit a nasty stream of errors, each of which causes an individual
hit-enter prompt :-( -- very annoying.
  • Loading branch information...
commit 806dcb21f9f7be1de715a44dbf68b8aa6857d2f5 1 parent a5f663e
Peter Odding authored October 09, 2010
4  autoload.vim
... ...
@@ -1,6 +1,6 @@
1 1
 " Vim script.
2 2
 " Author: Peter Odding <peter@peterodding.com>
3  
-" Last Change: August 22, 2010
  3
+" Last Change: October 9, 2010
4 4
 " URL: http://peterodding.com/code/vim/lua-inspect/
5 5
 " License: MIT
6 6
 
@@ -233,7 +233,7 @@ function! s:update_warnings(warnings) " {{{1
233 233
     endif
234 234
     let warnings = len(list) > 1 ? 'warnings' : 'warning'
235 235
     let w:quickfix_title = printf('%i %s reported by LuaInspect', len(list), warnings)
236  
-    wincmd w
  236
+    wincmd p
237 237
   else
238 238
     lclose
239 239
   endif
4  luainspect.vim
... ...
@@ -1,8 +1,8 @@
1 1
 " Vim plug-in
2 2
 " Author: Peter Odding <peter@peterodding.com>
3  
-" Last Change: August 21, 2010
  3
+" Last Change: October 9, 2010
4 4
 " URL: http://peterodding.com/code/vim/lua-inspect/
5  
-" Version: 0.4.6
  5
+" Version: 0.4.7
6 6
 " License: MIT
7 7
 
8 8
 " Support for automatic update using the GLVS plug-in.

0 notes on commit 806dcb2

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