Skip to content

Commit f5b47e5

Browse files
authored
Silently ignore hdevtools warnings
1 parent 474947c commit f5b47e5

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)