Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Apparently CursorMoved can get called early, before RunPyflakes has run. If this happens, just return.

Thanks EnTeQuAk.
  • Loading branch information
kevinw committed Oct 13, 2009
1 parent 74281b4 commit f12c088
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyflakes.vim
Expand Up @@ -170,6 +170,11 @@ if !exists("*s:GetPyflakesMessage")
function s:GetPyflakesMessage()
let s:cursorPos = getpos(".")

" Bail if RunPyflakes hasn't been called yet.
if !exists('b:matchedlines')
return
endif

" if there's a message for the line the cursor is currently on, echo
" it to the console
if has_key(b:matchedlines, s:cursorPos[1])
Expand Down

0 comments on commit f12c088

Please sign in to comment.