parent
e42bb4cca0
commit
ecbcf5eb25
@ -276,7 +276,7 @@ fu! s:Buffers() "{{{1
|
|||||||
if getbufvar(each, '&bl') && each != s:crbufnr
|
if getbufvar(each, '&bl') && each != s:crbufnr
|
||||||
let bufname = bufname(each)
|
let bufname = bufname(each)
|
||||||
if strlen(bufname) && getbufvar(each, '&ma') && bufname != 'ControlP'
|
if strlen(bufname) && getbufvar(each, '&ma') && bufname != 'ControlP'
|
||||||
cal add(allbufs, fnamemodify(bufname, ':p'))
|
cal add(allbufs, bufname)
|
||||||
en
|
en
|
||||||
en
|
en
|
||||||
endfo
|
endfo
|
||||||
@ -717,7 +717,8 @@ endf
|
|||||||
fu! ctrlp#acceptfile(mode, matchstr, ...)
|
fu! ctrlp#acceptfile(mode, matchstr, ...)
|
||||||
let [md, matchstr] = [a:mode, a:matchstr]
|
let [md, matchstr] = [a:mode, a:matchstr]
|
||||||
" Get the full path
|
" Get the full path
|
||||||
let filpath = s:nocwd() ? getcwd().s:lash().matchstr : matchstr
|
let filpath = s:nocwd() ? getcwd().s:lash().matchstr :
|
||||||
|
\ s:itemtype == 1 ? fnamemodify(matchstr, ':p') : matchstr
|
||||||
cal s:PrtExit()
|
cal s:PrtExit()
|
||||||
let bufnum = bufnr(filpath)
|
let bufnum = bufnr(filpath)
|
||||||
if s:jmptobuf && bufnum > 0 && md =~ 'e\|t'
|
if s:jmptobuf && bufnum > 0 && md =~ 'e\|t'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user