diff options
| author | Yasuhiro Matsumoto | 2017-07-04 18:49:54 +0900 |
|---|---|---|
| committer | Yasuhiro Matsumoto | 2017-07-04 18:49:54 +0900 |
| commit | e346ae1e374b3e7a2baa3da5eb1003618aa39ee3 (patch) | |
| tree | 3170956fb9bba3d9624acddfe909d4e41a847e14 | |
| parent | 583a8a279fc5529f033745539742c11e702cd0c1 (diff) | |
| parent | 5b2cfefed9162d4d5533d79fcd67c1cb89107c4e (diff) | |
| download | ctrlp.vim-fix-getextvar.tar.gz | |
Merge branch ‘master’ into fix-getextvar
fix-getextvar| -rw-r--r-- | autoload/ctrlp.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/autoload/ctrlp.vim b/autoload/ctrlp.vim index 8e049cc..7e88000 100644 --- a/autoload/ctrlp.vim +++ b/autoload/ctrlp.vim @@ -1878,6 +1878,11 @@ fu! s:highlight(pat, grp) en cal matchadd('CtrlPLinePre', '^>') + elseif !empty(a:pat) && s:regexp && + \ exists('g:ctrlp_regex_always_higlight') && + \ g:ctrlp_regex_always_higlight + let pat = substitute(a:pat, '\\\@<!\^', '^> \\zs', 'g') + cal matchadd(a:grp, ( s:martcs == '' ? '\c' : '\C').pat) en endf |