lib/vmail.vim in vmail-1.3.5 vs lib/vmail.vim in vmail-1.3.6
- old
+ new
@@ -620,10 +620,11 @@
else
" find contacts
" model regex: match at beginning of line, or inside < > wrapping
" email addr
" '\(^ho\|<ho\)'
- let regex = shellescape('\(^' . a:base . '\|<' . a:base . '\)')
+ " let regex = shellescape('\(^' . a:base . '\|<' . a:base . '\)')
+ let regex = shellescape(a:base)
let matches = system("grep -i " . regex . " " . $VMAIL_CONTACTS_FILE)
return split(matches, "\n")
endif
endfun