[Commits] Commit hash can be longer
This commit is contained in:
parent
990834ab6c
commit
cf60e54647
1 changed files with 1 additions and 1 deletions
|
@ -988,7 +988,7 @@ function! s:commits_sink(lines)
|
||||||
let cmd = get(extend({'ctrl-d': ''}, get(g:, 'fzf_action', s:default_action)), a:lines[0], 'e')
|
let cmd = get(extend({'ctrl-d': ''}, get(g:, 'fzf_action', s:default_action)), a:lines[0], 'e')
|
||||||
let buf = bufnr('')
|
let buf = bufnr('')
|
||||||
for idx in range(1, len(a:lines) - 1)
|
for idx in range(1, len(a:lines) - 1)
|
||||||
let sha = matchstr(a:lines[idx], '[0-9a-f]\{7}')
|
let sha = matchstr(a:lines[idx], '[0-9a-f]\{7,9}')
|
||||||
if !empty(sha)
|
if !empty(sha)
|
||||||
if empty(cmd)
|
if empty(cmd)
|
||||||
if idx > 1
|
if idx > 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue