Run :tag as if typed

Refs #339
This commit is contained in:
Kien N 2013-01-09 08:15:36 +07:00
parent cec9e8113a
commit e71cb9f1da

View File

@ -106,10 +106,10 @@ fu! ctrlp#tag#accept(mode, str)
en en
let save_cst = &cst let save_cst = &cst
set cst& set cst&
exe fnd[1].'ta' tg sil! cal feedkeys(":".fnd[1]."ta ".tg."\r", 'nt')
let &cst = save_cst let &cst = save_cst
el el
exe cmd tg sil! cal feedkeys(":".cmd." ".tg."\r", 'nt')
en en
cal ctrlp#setlcdir() cal ctrlp#setlcdir()
endf endf