Browse Source

Adding DLL as a valid extension for ycm_core

Fixes #395
Strahinja Val Markovic 11 years ago
parent
commit
2741520020
1 changed files with 4 additions and 2 deletions
  1. 4 2
      plugin/youcompleteme.vim

+ 4 - 2
plugin/youcompleteme.vim

@@ -41,6 +41,8 @@ function! s:HasYcmCore()
     return 1
   elseif filereadable(path_prefix . 'ycm_core.pyd')
     return 1
+  elseif filereadable(path_prefix . 'ycm_core.dll')
+    return 1
   endif
   return 0
 endfunction
@@ -50,8 +52,8 @@ let g:ycm_check_if_ycm_core_present =
 
 if g:ycm_check_if_ycm_core_present && !s:HasYcmCore()
   echohl WarningMsg |
-        \ echomsg "ycm_core.[so|pyd] not detected; you need to compile YCM " .
-        \ "before using it. Read the docs!" |
+        \ echomsg "ycm_core.[so|pyd|dll] not detected; you need to compile " .
+        \ "YCM before using it. Read the docs!" |
         \ echohl None
   finish
 endif