Skip to content

Commit b3ad52e

Browse files
committed
Merge branch 'fix_version_check'
2 parents 53e3180 + d70ab37 commit b3ad52e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/clang_format.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function! clang_format#get_version()
6868
set shell=/bin/bash
6969
endif
7070
try
71-
return matchlist(split(s:system(g:clang_format#command.' --version 2>&1'), "\n")[1], '\(\d\+\)\.\(\d\+\)')[1:2]
71+
return matchlist(s:system(g:clang_format#command.' --version 2>&1'), '\(\d\+\)\.\(\d\+\)')[1:2]
7272
finally
7373
if exists('l:shell_save')
7474
let &shell = shell_save

0 commit comments

Comments
 (0)