Explorar o código

Use s:extract_name instead of matchstr

Junegunn Choi %!s(int64=11) %!d(string=hai) anos
pai
achega
05008e7a82
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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