{"action":"created","issue":{"url":"https://api.github.com/repos/Mudlet/Mudlet/issues/1995","repository_url":"https://api.github.com/repos/Mudlet/Mudlet","labels_url":"https://api.github.com/repos/Mudlet/Mudlet/issues/1995/labels{/name}","comments_url":"https://api.github.com/repos/Mudlet/Mudlet/issues/1995/comments","events_url":"https://api.github.com/repos/Mudlet/Mudlet/issues/1995/events","html_url":"https://github.com/Mudlet/Mudlet/issues/1995","id":362757946,"node_id":"MDU6SXNzdWUzNjI3NTc5NDY=","number":1995,"title":"Inaccuracy when selecting text using the mouse","user":{"login":"diamond-lizard","id":31175456,"node_id":"MDQ6VXNlcjMxMTc1NDU2","avatar_url":"https://avatars3.githubusercontent.com/u/31175456?v=4","gravatar_id":"","url":"https://api.github.com/users/diamond-lizard","html_url":"https://github.com/diamond-lizard","followers_url":"https://api.github.com/users/diamond-lizard/followers","following_url":"https://api.github.com/users/diamond-lizard/following{/other_user}","gists_url":"https://api.github.com/users/diamond-lizard/gists{/gist_id}","starred_url":"https://api.github.com/users/diamond-lizard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diamond-lizard/subscriptions","organizations_url":"https://api.github.com/users/diamond-lizard/orgs","repos_url":"https://api.github.com/users/diamond-lizard/repos","events_url":"https://api.github.com/users/diamond-lizard/events{/privacy}","received_events_url":"https://api.github.com/users/diamond-lizard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-09-21T20:09:38Z","updated_at":"2018-09-27T23:04:25Z","closed_at":null,"author_association":"NONE","body":"#### Brief summary of issue / Description of requested feature:\r\n\r\nWhen clicking and dragging over some text in order to select it, the text selection does not happen precisely under the mouse cursor, but instead happens some distance away.  This makes precise selection of text difficult and frustrating.\r\n\r\n#### Steps to reproduce the issue / Reasons for adding feature:\r\n\r\n1. Click and drag the mouse over some text\r\n\r\n#### Error output / Expected result of feature\r\n\r\nThe selection doesn't happen exactly where you clicked and dragged.\r\n\r\n#### Extra information, such as Mudlet version, operating system and ideas for how to solve / implement:\r\n\r\nMudlet 3.13.0 on Gentoo Linux"},"comment":{"url":"https://api.github.com/repos/Mudlet/Mudlet/issues/comments/425269551","html_url":"https://github.com/Mudlet/Mudlet/issues/1995#issuecomment-425269551","issue_url":"https://api.github.com/repos/Mudlet/Mudlet/issues/1995","id":425269551,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTI2OTU1MQ==","user":{"login":"SlySven","id":6163092,"node_id":"MDQ6VXNlcjYxNjMwOTI=","avatar_url":"https://avatars3.githubusercontent.com/u/6163092?v=4","gravatar_id":"","url":"https://api.github.com/users/SlySven","html_url":"https://github.com/SlySven","followers_url":"https://api.github.com/users/SlySven/followers","following_url":"https://api.github.com/users/SlySven/following{/other_user}","gists_url":"https://api.github.com/users/SlySven/gists{/gist_id}","starred_url":"https://api.github.com/users/SlySven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SlySven/subscriptions","organizations_url":"https://api.github.com/users/SlySven/orgs","repos_url":"https://api.github.com/users/SlySven/repos","events_url":"https://api.github.com/users/SlySven/events{/privacy}","received_events_url":"https://api.github.com/users/SlySven/received_events","type":"User","site_admin":false},"created_at":"2018-09-27T23:04:25Z","updated_at":"2018-09-27T23:04:25Z","author_association":"MEMBER","body":"I think there is an off-by-one in some of the code that tries to work out where in the text (in the `TBuffer::buffer / TBuffer::lineBuffer` members) the mouse was clicked. This is considerable exacerbated in non-ASCII text by the highlighting code counting `TChar`s/`QChar`s in the text to work out the position but which failed to work correctly when the graphemes on screen use more than one of the aforesaid things for each one (for non-BMP characters or with combining diacriticals)."}}
{"actor":{"display_login":"SlySven"}}