Page MenuHomePhabricator

Wordbreak detection is faulty for selection starting just up-page of a link annotation
Closed, ResolvedPublic40 Estimated Story Points

Description

In the string:

Alice bought Charlie deep emerald fish

… where "deep emerald" is a link, if the cursor is inside the link:

Alice bought Charlie d|eep emerald fish

… and you press the link button, the whole link ("deep emerald") is selected; however, if the cursor is just up-page of the link:

Alice bought Charlie |deep emerald fish

… then only the first word ("deep") is selected, causing nasty breakages and no-wiki'ing galore. Happens in standalone too.

Event Timeline

Change 197425 had a related patch set uploaded (by Mooeypoo):
Expand annotation beyond a word if it exists

https://gerrit.wikimedia.org/r/197425

Change 197425 merged by jenkins-bot:
Expand annotation beyond a word if it exists

https://gerrit.wikimedia.org/r/197425

This comment was removed by Ryasmeen.