Skip to content

Commit

Permalink
give up checking version when failing to obtain the version
Browse files Browse the repository at this point in the history
related: #51
  • Loading branch information
rhysd committed Oct 5, 2016
1 parent f47fbca commit 20f7c94
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions autoload/clang_format.vim
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ function! clang_format#is_invalid()

if !exists('s:version')
let v = clang_format#get_version()
if len(v) < 2
" XXX: Give up checking version
return 0
endif
if v[0] < 3 || (v[0] == 3 && v[1] < 4)
return 2
endif
Expand Down

0 comments on commit 20f7c94

Please sign in to comment.