From 56a5957734a126ee3aab3f75f2af556ac36f78e0 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Thu, 14 Apr 2022 20:05:57 +0900 Subject: [PATCH] Omit lines for reader --- autoload/ctrlp.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/ctrlp.vim b/autoload/ctrlp.vim index 2dbb2b65..d4445c88 100644 --- a/autoload/ctrlp.vim +++ b/autoload/ctrlp.vim @@ -756,8 +756,8 @@ 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] + if s:nolim == 0 && len(lines) > height + let lines = lines[:height-1] en if has('patch-8.1-0') && s:flfunc ==# 's:formatline(v:val)' cal map(lines, function('s:formatline2', [s:curtype()]))