Skip to content
Snippets Groups Projects
Commit 381b06a0 authored by Jerome Reybert's avatar Jerome Reybert
Browse files

autoload/magit/utils.vim: fix is_binary function (fixes #27)

parent 46ce3d70
Branches
Tags
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
" param[in] filename: the file path. it must quoted if it contains spaces " param[in] filename: the file path. it must quoted if it contains spaces
function! magit#utils#is_binary(filename) function! magit#utils#is_binary(filename)
return ( match(system("file --mime " . a:filename ), return ( match(system("file --mime " . a:filename ),
\ a:filename . ".*charset=binary") != -1 ) \ ".*charset=binary") != -1 )
endfunction endfunction
" magit#utils#ls_all: list all files (including hidden ones) in a given path " magit#utils#ls_all: list all files (including hidden ones) in a given path
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment