Saving the old position when using BufferTag #272

Closed
majutsushi opened this Issue Sep 6, 2012 · 4 comments

Projects

None yet

2 participants

@majutsushi

It would be nice if the current position of the cursor could be saved with the ' mark when jumping somewhere else with the BufferTag extension. That way you can easily jump back to where you were before by using '' or Ctrl-O.

@kien kien closed this in 32ac8d2 Sep 15, 2012
@kien
Owner
kien commented Sep 15, 2012

Added. Thank you!

@majutsushi

Great, thanks! I technically works, but I'm getting this error when jumping to certain tags:

Error detected while processing function <SNR>158_AcceptSelection..ctrlp#buffertag#accept:
line    8:
E61: Nested *
line   10:
E61: Nested *
E61: Nested *
E61: Nested *
E61: Nested *
E61: Nested *
E61: Nested *
E61: Nested *
E61: Nested *
E61: Nested *
E61: Nested *
E61: Nested *
E61: Nested *
E61: Nested *
E61: Nested *
E61: Nested *
E61: Nested *
E61: Nested *
E61: Nested *
E61: Nested *
E61: Nested *
E61: Nested *
E61: Nested *

I think it's because there are *s on the line of the tags (it's a C++ file):

nsThreadClassInfo::GetContractID(char **result)

It works fine on lines without the asterisks. So I guess the regexp should be created in 'very nomagic' mode to prevent special characters from interfering.

@kien kien added a commit that referenced this issue Sep 15, 2012
@kien Match the tag pattern with "very nomagic"
Refs #272
91a0dc5
@kien
Owner
kien commented Sep 15, 2012

Thanks! Just pushed a fix. Let me know if you find any other problem.

@majutsushi

Seems to work fine now, thanks!

@liskin liskin pushed a commit to liskin/ctrlp.vim that referenced this issue Oct 7, 2016
@mattn mattn add YankLine()
Clsoe #272
2883390
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment