mirror of
https://github.com/amix/vimrc
synced 2025-06-16 09:35:01 +08:00
Updated vim plugins
This commit is contained in:
@ -7553,7 +7553,7 @@ function! s:SquashArgument(...) abort
|
||||
if &filetype == 'fugitive'
|
||||
let commit = matchstr(getline('.'), '^\%(\%(\x\x\x\)\@!\l\+\s\+\)\=\zs[0-9a-f]\{4,\}\ze \|^' . s:ref_header . ': \zs\S\+')
|
||||
elseif has_key(s:temp_files, s:cpath(expand('%:p')))
|
||||
let commit = matchstr(getline('.'), '\S\@<!\x\{4,\}\>')
|
||||
let commit = matchstr(getline('.'), '\S\@<!\x\{4,\}\S\@!')
|
||||
else
|
||||
let commit = s:Owner(@%)
|
||||
endif
|
||||
@ -7599,7 +7599,7 @@ function! s:HunkPosition(lnum) abort
|
||||
let lnum -= 1
|
||||
let line_char = getline(lnum)[0]
|
||||
endwhile
|
||||
let starts = matchlist(getline(lnum), '^@@\+[ 0-9,-]* -\(\d\+\),\d\+ +\(\d\+\),')
|
||||
let starts = matchlist(getline(lnum), '^@@\+[ 0-9,-]* -\(\d\+\)\%(,\d\+\)\= +\(\d\+\)[ ,]')
|
||||
if empty(starts)
|
||||
return [0, 0, 0]
|
||||
endif
|
||||
|
Reference in New Issue
Block a user