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

error when moving past last item #191

Open
nhooyr opened this issue Jan 7, 2017 · 3 comments
Open

error when moving past last item #191

nhooyr opened this issue Jan 7, 2017 · 3 comments
Labels

Comments

@nhooyr
Copy link

nhooyr commented Jan 7, 2017

  1. Open vim
  2. Type some newlines and put foo somwhere in between
  3. Go to the top
  4. Search for fo with sneak
  5. Try to go to the next one
  6. Error instead of silently doing nothing

Also, watch: https://asciinema.org/a/b6x9mq0ik4izpb83yx51vrb24

The full error is:

Error detected while processing function sneak#wrap[8]..sneak#to[118]..sneak#label#to[3]..<SNR>100_do_label:
line   48:
E716: Key not present in Dictionary: a
E15: Invalid expression: mappedtoNext ? s:matchmap[strpart(g:sneak#target_labels, 0, 1)] : s:matchmap[choice]
@justinmk
Copy link
Owner

justinmk commented Apr 12, 2017

Heh. Just noticed I made a note of this bug a long time ago: 628f9d0#diff-2336eb3ad7b84c249dc9b75108450e55R43

@justinmk justinmk added the bug label Apr 12, 2017
@nhooyr
Copy link
Author

nhooyr commented Nov 21, 2019

Going to close as it has been a long time and I'm not sure if this is relevant anymore.

@nhooyr nhooyr closed this as completed Nov 21, 2019
@dseeni
Copy link

dseeni commented Apr 11, 2020

I'm still experiencing this in the latest version of NVIM v0.5.0-417-g5a5c2f029
running on Windows with Nvim-Qt

I've narrowed it down I think..
I have highlight occurrences set (not labels, not using easy motion style jumping).
Basically if there is more than one search result, but only 1 is currently visible, this error will trigger prior to jumping to the next occurence off screen.

But only during the first pass through the search results.

Hope that helps if you do end up wanting to fix this. Love this plugin.

@justinmk justinmk reopened this Jun 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants