We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6468c9 commit f8ce48fCopy full SHA for f8ce48f
autoload/ghcmod/util.vim
@@ -11,9 +11,17 @@ function! ghcmod#util#print_error(msg) "{{{
11
endfunction "}}}
12
13
if vimproc#util#is_windows() " s:is_abspath {{{
14
- function! ghcmod#util#is_abspath(path)
15
- return a:path =~? '^[A-Za-z]:[\/]'
16
- endfunction
+ if v:version > 704 || (v:version == 704 && has('patch001'))
+ function! ghcmod#util#is_abspath(path)
+ return a:path =~? '^[a-z]:[\/]'
17
+ endfunction
18
+ else
19
+ " NFA regexp engine had a bug and fixed in 7.4.001.
20
+ " http://code.google.com/p/vim/source/detail?r=3e9107b86b68d83bfa94e43afffbf17623afe55e
21
22
+ return a:path =~# '^[A-Za-z]:[\/]'
23
24
+ endif
25
else
26
function! ghcmod#util#is_abspath(path)
27
return a:path[0] ==# '/'
0 commit comments