Permalink
Browse files

Temorary fix for compiler script not to cause error messages.

  • Loading branch information...
1 parent 162a8ed commit be183b095d0b380500185bc0b8952243d110f764 @oscarh committed Mar 17, 2011
Showing with 11 additions and 9 deletions.
  1. +11 −9 compiler/erlang.vim
View
@@ -46,15 +46,17 @@ function! HighlightErlangErrors()
endfunction
function! s:show_msg()
- let pos = getpos(".")
- if has_key(b:error_list, pos[1])
- let item = get(b:error_list, pos[1])
- echo item.msg
- let b:is_showing_msg = 1
- else
- if exists("b:is_showing_msg") && b:is_showing_msg == 1
- echo
- let b:is_showing_msg = 0
+ if exists('b:error_list')
+ let pos = getpos(".")
+ if has_key(b:error_list, pos[1])
+ let item = get(b:error_list, pos[1])
+ echo item.msg
+ let b:is_showing_msg = 1
+ else
+ if exists("b:is_showing_msg") && b:is_showing_msg == 1
+ echo
+ let b:is_showing_msg = 0
+ endif
endif
endif
endf

0 comments on commit be183b0

Please sign in to comment.