From cec9e8113adaa0488af9e9fd2ee6ac330684e4e9 Mon Sep 17 00:00:00 2001 From: Kien N Date: Tue, 25 Dec 2012 23:48:20 +0700 Subject: [PATCH] Reset 'cscopetag' temporarily while using `:tag` Refs #235 --- autoload/ctrlp/tag.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/ctrlp/tag.vim b/autoload/ctrlp/tag.vim index 83921a5..dfbdb04 100644 --- a/autoload/ctrlp/tag.vim +++ b/autoload/ctrlp/tag.vim @@ -104,7 +104,10 @@ fu! ctrlp#tag#accept(mode, str) if cmd != '' exe cmd en + let save_cst = &cst + set cst& exe fnd[1].'ta' tg + let &cst = save_cst el exe cmd tg en