Skip to content

Commit

Permalink
[fix] bsd feature in getdistro's function
Browse files Browse the repository at this point in the history
  • Loading branch information
get-me-power committed Dec 17, 2021
1 parent fafd27f commit 5499ac3
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions plugin/webdevicons.vim
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ function s:getDistro()
return s:distro
endif

if has('bsd')
let s:distro = ''
return s:distro
endif

if g:DevIconsEnableDistro && executable('lsb_release')
let s:lsb = system('lsb_release -i')
if s:lsb =~# 'Arch'
Expand Down Expand Up @@ -567,13 +572,7 @@ function! WebDevIconsGetFileFormatSymbol(...)
if &fileformat ==? 'dos'
let fileformat = ''
elseif &fileformat ==? 'unix'
if s:isDarwin()
let fileformat = ''
elseif has('bsd')
let fileformat = ''
else
let fileformat = s:getDistro()
endif
let fileformat = s:isDarwin() ? '' : s:getDistro()
elseif &fileformat ==? 'mac'
let fileformat = ''
endif
Expand Down

0 comments on commit 5499ac3

Please sign in to comment.