rxi / lite

A lightweight text editor written in Lua
MIT License
7.33k stars 348 forks source link

Mouse double-click selection bug #273

Open mjoork opened 3 years ago

mjoork commented 3 years ago

Bug or feature?

When you select a word by double-clicking it and then you click on other line, often it selects the whole line.

Expected behaviour

The text is unselected and the caret is in the position where the user clicked.

https://user-images.githubusercontent.com/20644474/113476570-e6943a80-9484-11eb-8d13-6a341d7c7e65.mp4

mjoork commented 3 years ago

Ah, I see! It comes from the fact that after double-click selecting a word, I can further click to select the whole line, but not necessarily the same line. Is this intended?