Skip to content

Commit 16ec435

Browse files
committed
Merge pull request #206 from ctrlpvim/revert186
Revert #186
2 parents 8e082fc + 6142e26 commit 16ec435

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

autoload/ctrlp.vim

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -565,9 +565,6 @@ fu! s:Render(lines, pat)
565565
let height = min([max([s:mw_min, s:res_count]), s:winmaxh])
566566
let pat = s:byfname() ? split(a:pat, '^[^;]\+\\\@<!\zs;', 1)[0] : a:pat
567567
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('.')
571568

572569
" Setup the match window
573570
sil! exe '%d _ | res' height
@@ -599,9 +596,6 @@ fu! s:Render(lines, pat)
599596
cal s:remarksigns()
600597
if exists('s:cline') && s:nolim != 1
601598
cal cursor(s:cline, 1)
602-
el
603-
let cur_line = line('$') < cur_line ? 1 : cur_line
604-
cal cursor(cur_line, 1)
605599
en
606600
" Highlighting
607601
if s:dohighlight()

0 commit comments

Comments
 (0)