mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 13:53:51 -05:00
Fix regexes in jump to file
Closes https://github.com/tpope/vim-fugitive/issues/906
This commit is contained in:
@@ -2957,9 +2957,9 @@ function! s:cfile() abort
|
|||||||
let prefixes.a = myhash.'^:'
|
let prefixes.a = myhash.'^:'
|
||||||
let prefixes.b = myhash.':'
|
let prefixes.b = myhash.':'
|
||||||
endif
|
endif
|
||||||
let ref = s:sub(ref, '^\(\w\)/', 'get(prefixes, submatch(1), "HEAD:")')
|
let ref = s:sub(ref, '^(\w)/', 'get(prefixes, submatch(1), "HEAD:")')
|
||||||
if exists('dref')
|
if exists('dref')
|
||||||
let dref = s:sub(dref, '^\(\w\)/', 'get(prefixes, submatch(1), "HEAD:")')
|
let dref = s:sub(dref, '^(\w)/', 'get(prefixes, submatch(1), "HEAD:")')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if ref ==# '/dev/null'
|
if ref ==# '/dev/null'
|
||||||
|
|||||||
Reference in New Issue
Block a user