Skip to content

Commit e3c29ed

Browse files
committed
Fix platform detection for macOS
1 parent 3e4dc91 commit e3c29ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/barbaric.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
" Check dependencies
2-
if system('uname -s') == 'Darwin' && executable('xkbswitch')
2+
if has('mac') && executable('xkbswitch')
33
let g:barbaric_ime = 'macos'
44
elseif executable('fcitx-remote') && system('fcitx-remote') > 0
55
let g:barbaric_ime = 'fcitx'

0 commit comments

Comments
 (0)