Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
xolox committed Oct 9, 2010
1 parent a5f663e commit 806dcb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions 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

Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions 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.
Expand Down

0 comments on commit 806dcb2

Please sign in to comment.