diff options
| author | mattn | 2015-06-06 12:59:46 +0900 |
|---|---|---|
| committer | mattn | 2015-06-06 12:59:46 +0900 |
| commit | dfd46f13950ec24dccf382af9a41fcdb282aef89 (patch) | |
| tree | ca842ac6453955e910ca2eb437321e4beea152dd | |
| parent | 083d201f3027aa8f9a6f0361758c91feccb38e63 (diff) | |
| download | ctrlp.vim-matcher-color.tar.gz | |
escape . and \
matcher-color| -rw-r--r-- | autoload/ctrlp.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/ctrlp.vim b/autoload/ctrlp.vim index eabff84..8dacc80 100644 --- a/autoload/ctrlp.vim +++ b/autoload/ctrlp.vim @@ -1680,7 +1680,7 @@ fu! s:highlight(pat, grp) if hlmode == 1 cal clearmatches() for l in s:matcher_lines - cal matchadd(a:grp, l) + cal matchadd(a:grp, substitute(l, '[\\.]', '\\&', 'g') endfor cal matchadd('CtrlPLinePre', '^>') unlet s:matcher_lines |