helix/helix-term/src
Michael Davis d948ace67b
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
2022-06-24 22:58:04 +09:00
..
commands Remove a couple more unwraps 2022-06-22 02:26:24 +09:00
keymap text-objects: add test capture & elixir queries 2022-06-21 11:32:03 -05:00
ui check selection's visible width when copying on mouse click (#2711) 2022-06-24 22:58:04 +09:00
application.rs factor new Application with file arg to function 2022-06-19 00:00:31 -04:00
args.rs Add refresh-config and open-config command (#1803) 2022-03-25 18:05:20 +09:00
commands.rs Redetect indent and line endings after language server replaces documents (#2778) 2022-06-24 22:56:18 +09:00
compositor.rs use test terminal backend for integration tests 2022-06-18 23:57:47 -04:00
config.rs Move top level lsp config to editor.lsp (#1868) 2022-03-28 10:11:52 +09:00
health.rs fix: do not color health summary when stdout is piped (#2836) 2022-06-20 17:07:32 +02:00
job.rs fix(command): write-quit: do not quit if write fails 2022-06-18 23:57:47 -04:00
keymap.rs Improve Readability (#2639) 2022-06-01 12:01:37 -05:00
lib.rs Add refresh-config and open-config command (#1803) 2022-03-25 18:05:20 +09:00
main.rs use main application event loop 2022-06-18 23:54:03 -04:00