Browse Source

Use s:extract_name instead of matchstr

Junegunn Choi 11 năm trước cách đây
mục cha
commit
05008e7a82
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      plug.vim

+ 1 - 1
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