Use s:extract_name instead of matchstr
This commit is contained in:
parent
2889cb4739
commit
05008e7a82
1 changed files with 1 additions and 1 deletions
2
plug.vim
2
plug.vim
|
@ -1383,7 +1383,7 @@ function! s:find_name(lnum)
|
|||
if empty(line)
|
||||
return ''
|
||||
endif
|
||||
let name = matchstr(line, '\(^- \)\@<=[^:]\+')
|
||||
let name = s:extract_name(line, '-', '')
|
||||
if !empty(name)
|
||||
return name
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue