This time I actually tried it

This commit is contained in:
Tim Pope 2017-05-02 19:34:47 -04:00
parent c9b26e20d3
commit c640ee78a8

View File

@ -2957,9 +2957,9 @@ function! s:cfile() abort
let prefixes.a = myhash.'^:'
let prefixes.b = myhash.':'
endif
let ref = s:sub(ref, '^(\w)/', '\=get(prefixes, submatch(1), "HEAD:")')
let ref = substitute(ref, '^\(\w\)/', '\=get(prefixes, submatch(1), "HEAD:")', '')
if exists('dref')
let dref = s:sub(dref, '^(\w)/', '\=get(prefixes, submatch(1), "HEAD:")')
let dref = substitute(dref, '^\(\w\)/', '\=get(prefixes, submatch(1), "HEAD:")', '')
endif
if ref ==# '/dev/null'