Skip to content

Commit

Permalink
Merge branch 'patch-1' of https://github.com/hail2u/ctrlp.vim
Browse files Browse the repository at this point in the history
  • Loading branch information
kien committed Dec 16, 2011
2 parents eb75adb + 0eff020 commit 0bd17c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/ctrlp.vim
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ fu! ctrlp#acceptfile(mode, matchstr, ...)
let filpath = s:itemtype ? matchstr : getcwd().s:lash.matchstr
cal s:PrtExit()
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 buftab = s:jmptobuf > 1 ? s:buftab(bufnum) : [0, 0]
let j2l = a:0 ? a:1 : str2nr(matchstr(s:tail(), '^ +\zs\d\+$'))
Expand Down

0 comments on commit 0bd17c4

Please sign in to comment.