Commits

kien committed c81bd22 Draft

Check the mode first

  • Participants
  • Parent commits df6bfc0

Comments (0)

Files changed (1)

autoload/ctrlp.vim

 	let [bufnr, tail] = [bufnr('^'.filpath.'$'), s:tail()]
 	let j2l = a:0 ? a:1 : str2nr(matchstr(tail, '^ +\D*\zs\d\+\ze\D*'))
 	if s:jmptobuf && bufnr > 0 && md =~ 'e\|t'
-		\ && !( bufnr == bufnr('%') && md == 'e' )
+		\ && !( md == 'e' && bufnr == bufnr('%') )
 		let [jmpb, bufwinnr] = [1, bufwinnr(bufnr)]
 		let buftab = s:jmptobuf > 1 ? s:buftab(bufnr, md) : [0, 0]
 	en