diff options
author | Christian Duerr <contact@christianduerr.com> | 2018-06-22 01:50:42 +0200 |
---|---|---|
committer | Christian Duerr <contact@christianduerr.com> | 2018-06-22 01:50:42 +0200 |
commit | c8fd4ff842d66d04fd0d2bdb64d994078ca40a8f (patch) | |
tree | 79c2aeb935c867f3d1955105bcb82bc30ccac18f /src/cli.rs | |
parent | e8692c1336f83acfff39400de7614ff5ac67212e (diff) | |
download | alacritty-c8fd4ff842d66d04fd0d2bdb64d994078ca40a8f.tar.gz alacritty-c8fd4ff842d66d04fd0d2bdb64d994078ca40a8f.zip |
Move clearing of start pos/side to `event.rs`
To reduce the required amount of code duplication the clearing of the
selection start position and side has been moved to a helper method in
the `event.rs` module which is called whenever any selection is created.
Since the double and triple clicks always create a new selection without
having to rely on inaccurate movement position reports, these just skip
the start position/side step by setting it to `None` when the selection
is created and instead use the mouse_coords() method to get the accurate
mouse position.
Diffstat (limited to 'src/cli.rs')
0 files changed, 0 insertions, 0 deletions