Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bug fix for `E776: No location list'
  • Loading branch information
xolox committed Aug 18, 2010
1 parent 4126f67 commit 47b2595
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions autoload.vim
Expand Up @@ -214,12 +214,8 @@ function! s:update_warnings(warnings) " {{{1
call add(list, { 'bufnr': bufnr('%'), 'lnum': linenum, 'col': colnum, 'text': message })
endif
endfor
" Don't update the location list when it hasn't changed, because Vim will
" reset the highlighting of the current item in the location list!
if !exists('b:luainspect_warnings') || b:luainspect_warnings != list
call setloclist(winnr(), list, 'r')
let b:luainspect_warnings = list
endif
call setloclist(winnr(), list)
let b:luainspect_warnings = list
if !empty(list)
lopen
if winheight(winnr()) > 4
Expand Down

0 comments on commit 47b2595

Please sign in to comment.