Skip to content

Commit

Permalink
Add global winnr.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiaslundberg committed Jan 16, 2016
1 parent 0fb2c58 commit 860c7d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions autoload/ctrlp.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2367,6 +2367,7 @@ endfu

fu! ctrlp#init(type, ...)
if exists('s:init') || s:iscmdwin() | retu | en
let g:ctrlp_before_winnr = winnr()
let [s:ermsg, v:errmsg] = [v:errmsg, '']
let [s:matches, s:init] = [1, 1]
cal s:Reset(a:0 ? a:1 : {})
Expand Down

0 comments on commit 860c7d3

Please sign in to comment.