Skip to content

Commit 63c1312

Browse files
committed
check matcher strictly
close #377
1 parent 59bd701 commit 63c1312

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/ctrlp.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ fu! s:MatchedItems(items, pat, limit)
570570
let exc = exists('s:crfilerel') ? s:crfilerel : ''
571571
let items = s:narrowable() ? s:matched + s:mdata[3] : a:items
572572
let matcher = s:getextvar('matcher')
573-
if empty(matcher)
573+
if empty(matcher) || type(matcher) != 4 || !has_key(matcher, 'match')
574574
let matcher = s:matcher
575575
en
576576
if matcher != {}

0 commit comments

Comments
 (0)