Use s:extract_name instead of matchstr

This commit is contained in:
Junegunn Choi 2014-10-10 17:34:39 +09:00
parent 2889cb4739
commit 05008e7a82

View file

@ -1383,7 +1383,7 @@ function! s:find_name(lnum)
if empty(line) if empty(line)
return '' return ''
endif endif
let name = matchstr(line, '\(^- \)\@<=[^:]\+') let name = s:extract_name(line, '-', '')
if !empty(name) if !empty(name)
return name return name
endif endif