parent
4f7d0a30f4
commit
f9ada48b58
@ -432,7 +432,7 @@ fu! s:MatchedItems(items, pat, limit)
|
|||||||
let items = s:narrowable() ? s:matched + s:mdata[3] : a:items
|
let items = s:narrowable() ? s:matched + s:mdata[3] : a:items
|
||||||
if s:matcher != {}
|
if s:matcher != {}
|
||||||
let argms = [items, a:pat, a:limit, s:mmode(), s:ispath, exc, s:regexp]
|
let argms = [items, a:pat, a:limit, s:mmode(), s:ispath, exc, s:regexp]
|
||||||
let lines = call(s:matcher['match'], argms)
|
let lines = call(s:matcher['match'], argms, s:matcher)
|
||||||
el
|
el
|
||||||
let lines = s:MatchIt(items, a:pat, a:limit, exc)
|
let lines = s:MatchIt(items, a:pat, a:limit, exc)
|
||||||
en
|
en
|
||||||
@ -1140,7 +1140,7 @@ fu! s:OpenNoMarks(md, line)
|
|||||||
cal s:remarksigns()
|
cal s:remarksigns()
|
||||||
cal s:BuildPrompt(0)
|
cal s:BuildPrompt(0)
|
||||||
elsei a:md == 'x'
|
elsei a:md == 'x'
|
||||||
cal call(s:openfunc[s:ctype], [a:md, a:line])
|
cal call(s:openfunc[s:ctype], [a:md, a:line], s:openfunc)
|
||||||
elsei a:md == 'd'
|
elsei a:md == 'd'
|
||||||
let dir = fnamemodify(a:line, ':h')
|
let dir = fnamemodify(a:line, ':h')
|
||||||
if isdirectory(dir)
|
if isdirectory(dir)
|
||||||
@ -1276,7 +1276,7 @@ fu! ctrlp#statusline()
|
|||||||
\ exists('s:marked') ? ' <'.s:dismrk().'>' : ' <->' : ''
|
\ exists('s:marked') ? ' <'.s:dismrk().'>' : ' <->' : ''
|
||||||
if s:status != {}
|
if s:status != {}
|
||||||
let args = [focus, byfname, s:regexp, prv, s:ctype, nxt, marked]
|
let args = [focus, byfname, s:regexp, prv, s:ctype, nxt, marked]
|
||||||
let &l:stl = call(s:status['main'], args)
|
let &l:stl = call(s:status['main'], args, s:status)
|
||||||
el
|
el
|
||||||
let item = '%#CtrlPMode1# '.s:ctype.' %*'
|
let item = '%#CtrlPMode1# '.s:ctype.' %*'
|
||||||
let focus = '%#CtrlPMode2# '.focus.' %*'
|
let focus = '%#CtrlPMode2# '.focus.' %*'
|
||||||
@ -1296,7 +1296,7 @@ endf
|
|||||||
fu! ctrlp#progress(enum, ...)
|
fu! ctrlp#progress(enum, ...)
|
||||||
if has('macunix') || has('mac') | sl 1m | en
|
if has('macunix') || has('mac') | sl 1m | en
|
||||||
let txt = a:0 ? '(press ctrl-c to abort)' : ''
|
let txt = a:0 ? '(press ctrl-c to abort)' : ''
|
||||||
let &l:stl = s:status != {} ? call(s:status['prog'], [a:enum])
|
let &l:stl = s:status != {} ? call(s:status['prog'], [a:enum], s:status)
|
||||||
\ : '%#CtrlPStats# '.a:enum.' %* '.txt.'%=%<%#CtrlPMode2# %{getcwd()} %*'
|
\ : '%#CtrlPStats# '.a:enum.' %* '.txt.'%=%<%#CtrlPMode2# %{getcwd()} %*'
|
||||||
redraws
|
redraws
|
||||||
endf
|
endf
|
||||||
@ -1869,9 +1869,9 @@ endf
|
|||||||
|
|
||||||
fu! s:buffunc(e)
|
fu! s:buffunc(e)
|
||||||
if a:e && has_key(s:buffunc, 'enter')
|
if a:e && has_key(s:buffunc, 'enter')
|
||||||
cal call(s:buffunc['enter'], [])
|
cal call(s:buffunc['enter'], [], s:buffunc)
|
||||||
elsei !a:e && has_key(s:buffunc, 'exit')
|
elsei !a:e && has_key(s:buffunc, 'exit')
|
||||||
cal call(s:buffunc['exit'], [])
|
cal call(s:buffunc['exit'], [], s:buffunc)
|
||||||
en
|
en
|
||||||
endf
|
endf
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user