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.
Pressing
Kfollows 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,Kmay 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.