mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-09 05:54:46 +08:00
[Commits] Commit hash can be longer
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user