Skip to content

Commit 8d0857c

Browse files
authored
Merge pull request #29 from tysonzero/patch-1
Silently ignore hdevtools warnings
2 parents 474947c + f5b47e5 commit 8d0857c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

autoload/hdevtools.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,9 @@ function! hdevtools#type()
530530
let l:types = []
531531
for l:line in split(l:output, '\n')
532532
let l:m = matchlist(l:line, '\(\d\+\) \(\d\+\) \(\d\+\) \(\d\+\) "\([^"]\+\)"')
533-
call add(l:types, [l:m[1 : 4], l:m[5]])
533+
if len(l:m) != 0
534+
call add(l:types, [l:m[1 : 4], l:m[5]])
535+
endif
534536
endfor
535537

536538
call hdevtools#clear_highlight()

0 commit comments

Comments
 (0)