Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
@xolox authored
Showing with 4 additions and 4 deletions.
  1. +2 −2 autoload.vim
  2. +2 −2 luainspect.vim
View
4 autoload.vim
@@ -1,6 +1,6 @@
" Vim script.
" Author: Peter Odding <peter@peterodding.com>
-" Last Change: August 22, 2010
+" Last Change: October 9, 2010
" URL: http://peterodding.com/code/vim/lua-inspect/
" License: MIT
@@ -233,7 +233,7 @@ function! s:update_warnings(warnings) " {{{1
endif
let warnings = len(list) > 1 ? 'warnings' : 'warning'
let w:quickfix_title = printf('%i %s reported by LuaInspect', len(list), warnings)
- wincmd w
+ wincmd p
else
lclose
endif
View
4 luainspect.vim
@@ -1,8 +1,8 @@
" Vim plug-in
" Author: Peter Odding <peter@peterodding.com>
-" Last Change: August 21, 2010
+" Last Change: October 9, 2010
" URL: http://peterodding.com/code/vim/lua-inspect/
-" Version: 0.4.6
+" Version: 0.4.7
" License: MIT
" Support for automatic update using the GLVS plug-in.
Please sign in to comment.
Something went wrong with that request. Please try again.