unblevable / quick-scope

Lightning fast left-right movement in Vim
MIT License
1.43k stars 54 forks source link

Fix mappings when no count is given #85

Closed foonathan closed 2 years ago

foonathan commented 2 years ago

Since 9fb216a843db241e1caf0661e29d3df156d09af6, f/F were broken when you are trying to jump to the same letter your cursor is already under: instead of jumping to the next occurrence, it did nothing instead (NVIM v0.6.1).

I believe this is because v:count expands to zero if no count has been giving. Using v:count1 instead fixes the issue for me, as that expands to 1.

bradford-smith94 commented 2 years ago

Aw man, I had originally had v:count1 for 2.5.14 but then changed it to v:count because I forgot to test when on the target character or when a duplicate target character is before the cursor.

Anyway, thanks for the pull request!