Skip to content

Commit b84a2a8

Browse files
authored
Merge pull request #47 from Shaac/configuration-filenames
Configuration filename does not depend of the OS
2 parents 8e1baaa + 3c32c39 commit b84a2a8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

autoload/clang_format.vim

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,7 @@ let g:clang_format#auto_formatexpr = s:getg('clang_format#auto_formatexpr', 0)
166166
" format codes {{{
167167
function! s:detect_style_file()
168168
let dirname = fnameescape(expand('%:p:h'))
169-
let style_file_name = has('win32') || has('win64') ? '_clang-format' : '.clang-format'
170-
return findfile(style_file_name, dirname.';') != ''
169+
return findfile('.clang-format', dirname.';') != '' || findfile('_clang-format', dirname.';') != ''
171170
endfunction
172171

173172
function! clang_format#format(line1, line2)

0 commit comments

Comments
 (0)