mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 22:03:51 -05:00
Remove overlooked 40 character limits
This commit is contained in:
@@ -60,7 +60,7 @@ function! FugitiveParse(...) abort
|
|||||||
if path !~# '^fugitive:'
|
if path !~# '^fugitive:'
|
||||||
return ['', '']
|
return ['', '']
|
||||||
endif
|
endif
|
||||||
let vals = matchlist(path, '\c^fugitive:\%(//\)\=\(.\{-\}\)\%(//\|::\)\(\x\{40\}\|[0-3]\)\(/.*\)\=$')
|
let vals = matchlist(path, '\c^fugitive:\%(//\)\=\(.\{-\}\)\%(//\|::\)\(\x\{40,\}\|[0-3]\)\(/.*\)\=$')
|
||||||
if len(vals)
|
if len(vals)
|
||||||
return [(vals[2] =~# '^.$' ? ':' : '') . vals[2] . substitute(vals[3], '^/', ':', ''), vals[1]]
|
return [(vals[2] =~# '^.$' ? ':' : '') . vals[2] . substitute(vals[3], '^/', ':', ''), vals[1]]
|
||||||
endif
|
endif
|
||||||
@@ -267,7 +267,7 @@ augroup fugitive
|
|||||||
autocmd FileType gitrebase
|
autocmd FileType gitrebase
|
||||||
\ let &l:include = '^\%(pick\|squash\|edit\|reword\|fixup\|drop\|[pserfd]\)\>' |
|
\ let &l:include = '^\%(pick\|squash\|edit\|reword\|fixup\|drop\|[pserfd]\)\>' |
|
||||||
\ if len(FugitiveGitDir()) |
|
\ if len(FugitiveGitDir()) |
|
||||||
\ let &l:includeexpr = 'v:fname =~# ''^\x\{4,40\}$'' ? FugitiveFind(v:fname) : ' .
|
\ let &l:includeexpr = 'v:fname =~# ''^\x\{4,\}$'' ? FugitiveFind(v:fname) : ' .
|
||||||
\ (len(&l:includeexpr) ? &l:includeexpr : 'v:fname') |
|
\ (len(&l:includeexpr) ? &l:includeexpr : 'v:fname') |
|
||||||
\ endif |
|
\ endif |
|
||||||
\ let b:undo_ftplugin = get(b:, 'undo_ftplugin', 'exe') . '|setl inex= inc='
|
\ let b:undo_ftplugin = get(b:, 'undo_ftplugin', 'exe') . '|setl inex= inc='
|
||||||
|
|||||||
Reference in New Issue
Block a user