diff options
| author | Yasuhiro Matsumoto | 2022-03-17 02:35:31 +0900 |
|---|---|---|
| committer | Yasuhiro Matsumoto | 2022-03-17 02:36:29 +0900 |
| commit | 628958ecb21046706c108d5a1aa2cc320438bf25 (patch) | |
| tree | 57f7dbb7e984ef37c72d0f08bc683904153169e2 | |
| parent | acbff25680820cd5d52a608a774c816f15e20859 (diff) | |
| download | ctrlp.vim-628958ecb21046706c108d5a1aa2cc320438bf25.tar.gz | |
Lines can be omitted over s:maxlines
| -rw-r--r-- | autoload/ctrlp.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/autoload/ctrlp.vim b/autoload/ctrlp.vim index cdf9509..fcb1823 100644 --- a/autoload/ctrlp.vim +++ b/autoload/ctrlp.vim @@ -753,6 +753,9 @@ fu! s:Render(lines, pat) en if s:mw_order == 'btt' | cal reverse(lines) | en let s:lines = copy(lines) + if s:maxfiles && len(lines) > s:maxfiles + let lines = lines[:s:maxfiles] + en if has('patch-8.1-0') && s:flfunc ==# 's:formatline(v:val)' cal map(lines, function('s:formatline2', [s:curtype()])) el |