Skip to content

Commit d2ca72c

Browse files
committed
g:ctrlp_match_window = 'results:0' mean no-limits
close #338
1 parent 2868678 commit d2ca72c

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

autoload/ctrlp.vim

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,6 @@ fu! s:match_window_opts()
303303
let s:mw_res =
304304
\ s:mw =~ 'results:[^,]\+' ? str2nr(matchstr(s:mw, 'results:\zs\d\+'))
305305
\ : min([s:mw_max, &lines])
306-
let s:mw_res = max([s:mw_res, 1])
307306
endf
308307
"}}}1
309308
" * Open & Close {{{1

doc/ctrlp.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ The minimum and maximum heights:
148148

149149
The maximum number of results:
150150
results:{n} - list maximum {n} results (default: sync with max height).
151+
0 mean no-limit.
151152

152153
Note: When a setting isn't set, its default value will be used.
153154

0 commit comments

Comments
 (0)