mirror of
https://github.com/amix/vimrc
synced 2025-06-16 09:35:01 +08:00
Updated plugins
This commit is contained in:
@ -934,7 +934,7 @@ function! fugitive#Find(object, ...) abort
|
||||
let commit = matchstr(s:ChompDefault('', [dir, 'merge-base'] + commits + ['--']), '\<[0-9a-f]\{40,\}\>')
|
||||
endif
|
||||
if commit !~# '^[0-9a-f]\{40,\}$'
|
||||
let commit = matchstr(s:ChompDefault('', [dir, 'rev-parse', '--verify', commit, '--']), '\<[0-9a-f]\{40,\}\>')
|
||||
let commit = matchstr(s:ChompDefault('', [dir, 'rev-parse', '--verify', commit . (len(file) ? '^{}' : ''), '--']), '\<[0-9a-f]\{40,\}\>')
|
||||
endif
|
||||
if len(commit)
|
||||
let f = 'fugitive://' . dir . '//' . commit . file
|
||||
@ -1559,7 +1559,7 @@ function! s:ReplaceCmd(cmd) abort
|
||||
endtry
|
||||
call delete(temp)
|
||||
if s:cpath(fnamemodify(bufname('$'), ':p'), temp)
|
||||
silent execute 'bwipeout '.bufnr('$')
|
||||
silent! execute 'bwipeout '.bufnr('$')
|
||||
endif
|
||||
endtry
|
||||
endfunction
|
||||
|
Reference in New Issue
Block a user