Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

color highlight when using g:sneak#use_ic_scs = 1 #16

Closed
reicheltd opened this issue Oct 23, 2013 · 6 comments
Closed

color highlight when using g:sneak#use_ic_scs = 1 #16

reicheltd opened this issue Oct 23, 2013 · 6 comments

Comments

@reicheltd
Copy link

Hey justin,

I am using the "ignore-case" option, but when typing fsn only the sn characters get highlighted, not Sn or SN

Best regards

@justinmk
Copy link
Owner

Yep, this is a known issue. Just to be clear, Sneak still jumps correctly to both sn and Sn, right? Only the highlight is missing.

I was wondering if it happened for anyone else, I thought it might be a Vim bug. Can you include the output of :call sneak#debug#report() (or at least the version info at the top of that output)?

Thanks for the report.

@reicheltd
Copy link
Author

nice report command! this is my output:

https://gist.github.com/anonymous/c11dbeb4d67f49eee326

On Wednesday, October 23, 2013 at 4:00 PM, justinmk wrote:

Yep, this is a known issue. I was wondering if it happened for anyone else, I thought it might be a Vim bug. Can you include the output of :call sneak#debug#report() (or at least the version info at the top of that output)?


Reply to this email directly or view it on GitHub (#16 (comment)).

@justinmk
Copy link
Owner

I am almost certain this is a vim bug. It can be demonstrated by:

set ignorecase
call matchadd('SneakPluginTarget', 'a', 2)

It only highlights lowercase "a", but matchadd() is supposed to respect ignorecase.

I can add a workaround, though.

@justinmk
Copy link
Owner

notes on this issue:

АБРАЗиЯ

abAB

\v[[:upper:]]+

toupper({expr})
  (just like applying |gU| to the string)

@justinmk
Copy link
Owner

It turns out this is not a bug, but undocumented until a recent patch.

justinmk added a commit that referenced this issue Nov 25, 2013
option: g:sneak#use_ic_scs = 1
@justinmk
Copy link
Owner

@reicheltd This should be fixed now, even for non-ASCII characters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants