We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8e082fc + 6142e26 commit 16ec435Copy full SHA for 16ec435
1 file changed
autoload/ctrlp.vim
@@ -565,9 +565,6 @@ fu! s:Render(lines, pat)
565
let height = min([max([s:mw_min, s:res_count]), s:winmaxh])
566
let pat = s:byfname() ? split(a:pat, '^[^;]\+\\\@<!\zs;', 1)[0] : a:pat
567
let cur_cmd = 'keepj norm! '.( s:mw_order == 'btt' ? 'G' : 'gg' ).'1|'
568
- " Since the active line won't be restored if s:nolim is set to 1, you cannot
569
- " change the active line.
570
- let cur_line = line('.')
571
572
" Setup the match window
573
sil! exe '%d _ | res' height
@@ -599,9 +596,6 @@ fu! s:Render(lines, pat)
599
596
cal s:remarksigns()
600
597
if exists('s:cline') && s:nolim != 1
601
598
cal cursor(s:cline, 1)
602
- el
603
- let cur_line = line('$') < cur_line ? 1 : cur_line
604
- cal cursor(cur_line, 1)
605
en
606
" Highlighting
607
if s:dohighlight()
0 commit comments