Merge branch 'patch-1' of https://github.com/hail2u/ctrlp.vim
This commit is contained in:
commit
0bd17c4462
@ -669,7 +669,7 @@ fu! ctrlp#acceptfile(mode, matchstr, ...)
|
|||||||
let filpath = s:itemtype ? matchstr : getcwd().s:lash.matchstr
|
let filpath = s:itemtype ? matchstr : getcwd().s:lash.matchstr
|
||||||
cal s:PrtExit()
|
cal s:PrtExit()
|
||||||
let bufnum = bufnr(filpath)
|
let bufnum = bufnr(filpath)
|
||||||
if s:jmptobuf && bufnum > 0 && md == 'e'
|
if s:jmptobuf && bufnum > 0 && (md == 'e' || md == 't')
|
||||||
let [jmpb, bufwinnr] = [1, bufwinnr(bufnum)]
|
let [jmpb, bufwinnr] = [1, bufwinnr(bufnum)]
|
||||||
let buftab = s:jmptobuf > 1 ? s:buftab(bufnum) : [0, 0]
|
let buftab = s:jmptobuf > 1 ? s:buftab(bufnum) : [0, 0]
|
||||||
let j2l = a:0 ? a:1 : str2nr(matchstr(s:tail(), '^ +\zs\d\+$'))
|
let j2l = a:0 ? a:1 : str2nr(matchstr(s:tail(), '^ +\zs\d\+$'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user