Skip to content

Fix K lookup for C++ link targets #15

Description

@simonwinther

Pressing K follows the word under the cursor, but the current word detection can pick too small a target. When the cursor is on a C++ name that spans more than a plain Vim word, K may look up only part of the name and open the wrong page.

The lookup needs a clearer fallback order. It should prefer the most specific target it can derive from the cursor position, then step down to broader fallbacks, and only use the regular word as the last option.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions