mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-10 04:23:46 -05:00
Avoid reusing variable
This commit is contained in:
@@ -2288,8 +2288,8 @@ let s:globsubs = {
|
|||||||
\ '*': '[^/]*',
|
\ '*': '[^/]*',
|
||||||
\ '?': '[^/]'}
|
\ '?': '[^/]'}
|
||||||
function! fugitive#glob(url, ...) abort
|
function! fugitive#glob(url, ...) abort
|
||||||
let [dir, commit, glob] = s:DirCommitFile(a:url)
|
let [repo, commit, glob] = s:DirCommitFile(a:url)
|
||||||
let dirglob = s:GitDir(dir)
|
let dirglob = s:GitDir(repo)
|
||||||
let append = matchstr(glob, '/*$')
|
let append = matchstr(glob, '/*$')
|
||||||
let glob = substitute(glob, '/*$', '', '')
|
let glob = substitute(glob, '/*$', '', '')
|
||||||
let pattern = '^' . substitute(glob, '/\=\*\*/\=\|/\=\*\|[.?\$]\|^^', '\=get(s:globsubs, submatch(0), "\\" . submatch(0))', 'g')[1:-1] . '$'
|
let pattern = '^' . substitute(glob, '/\=\*\*/\=\|/\=\*\|[.?\$]\|^^', '\=get(s:globsubs, submatch(0), "\\" . submatch(0))', 'g')[1:-1] . '$'
|
||||||
|
|||||||
Reference in New Issue
Block a user