summaryrefslogtreecommitdiff
path: root/helix-core/src/register.rs
diff options
context:
space:
mode:
authorMichael Davis2022-06-24 13:58:04 +0000
committerGitHub2022-06-24 13:58:04 +0000
commitd948ace67b10f162fd00106b9be2c1c680f33861 (patch)
tree849a5f4778b3b1c6c5253d1e645b0445656a1eb2 /helix-core/src/register.rs
parent886cff3bcc5f8e1d81e55afdbbf7ad8ff00ffc7b (diff)
check selection's visible width when copying on mouse click (#2711)
* check selection's visible width when copying on mouse click Mouse-click-up copies the selection produced by dragging. The event is ignored if the selection has a width of 1 though so you don't copy when clicking rather than dragging. The current check copies text when it has a visible width of 1 but is actually multiple characters in the rope like a CRLF line-ending. With this change we check the unicode width of the character(s) in the selection rather than the range length, so clicking on a CRLF line-ending does not copy. * use range.fragment to simplify getting the primary selection width
Diffstat (limited to 'helix-core/src/register.rs')
0 files changed, 0 insertions, 0 deletions