Skip to content

Commit

Permalink
Fix sorting by match length
Browse files Browse the repository at this point in the history
* Broken by previous commit.
  • Loading branch information
kien committed Nov 8, 2011
1 parent 2f4d281 commit b6764d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/ctrlp.vim
Expand Up @@ -785,7 +785,7 @@ fu! s:comptime(s1, s2)
endf endf


fu! s:matchlens(str, pat, ...) fu! s:matchlens(str, pat, ...)
if empty(a:pat) || a:pat =~ '^\|$' | retu {} | en if empty(a:pat) || index(['^','$'], a:pat) >= 0 | retu {} | en
let st = exists('a:1') ? a:1 : 0 let st = exists('a:1') ? a:1 : 0
let lens = exists('a:2') ? a:2 : {} let lens = exists('a:2') ? a:2 : {}
let nr = exists('a:3') ? a:3 : 0 let nr = exists('a:3') ? a:3 : 0
Expand Down

0 comments on commit b6764d7

Please sign in to comment.