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

Spurious help-target added when referencing A (append-at-end-of-line) #49

Open
Gumnos opened this issue Dec 26, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@Gumnos
Copy link

Gumnos commented Dec 26, 2024

Describe the bug

When referencing the help for A, it also includes a spurious link to the help for a-backtick in motion.txt

To Reproduce

Invoke the help-bot with backtick, colon, "help", space, capital A, backtick (spelled out to ensure it's conveyed properly, but should look like :help A

Expected behavior

The help-bot replies with just the link to the help for A (not help for a-backtick)

Screenshots

While not a screenshot, here's the Reddit thread in which it happened:

https://www.reddit.com/r/vim/comments/1hmlgx0/is_there_a_way_to_move_my_cursor_right_on_a/m3v8vi2/?context=3

My guess is that something in the closing-backtick gets interpreted as also issuing

:help a`

While in here, the emitted (wrong) entry seems to mis-escape the closing backtick (precisely what I was concerned about in my opening description 😂) getting the backtick displayed outside the <code> markup.

@Gumnos Gumnos added the bug Something isn't working label Dec 26, 2024
@heraldofsolace
Copy link
Owner

It's probably because of this regex which extracts tags not enclosed within backticks. Apparently it also consumes the backtick. Seems like it has been doing this for a while, but you're the first person to give it a tag where a version with backticks also exists 😂.

@Gumnos
Copy link
Author

Gumnos commented Dec 26, 2024

Glad I can poke at weird edge-cases for you 😁 I suspect the same issue might possibly manifest for i/I where there's also a backtick version of it in text-object help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants