diff options
author | Dustin <dustin1114@gmail.com> | 2017-12-23 00:17:04 -0500 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2017-12-22 21:17:04 -0800 |
commit | ea8cf10b2fa06f6573acec14f52816574bb0eb47 (patch) | |
tree | d0a7d0f9f4390ab124c6d130370526af7ea31e97 /src/lib.rs | |
parent | 7f7ec0682c3e186f28ee6c1e7502cf3151788d02 (diff) | |
download | alacritty-ea8cf10b2fa06f6573acec14f52816574bb0eb47.tar.gz alacritty-ea8cf10b2fa06f6573acec14f52816574bb0eb47.zip |
Assure that newlines are in selections (#777)
When a selection was made, the last line of the selection did not
include a new line character when the line ending was selected. This
would occur if only one line was selected; if multiple lines were
selected, only the final line did not include a newline.
This commit updates the `string_from_selection` function to attempt to
append a newline character in all places where they are suitable.
Because of the simplification of newline insertion, several trait
implementations were removed.
Diffstat (limited to 'src/lib.rs')
0 files changed, 0 insertions, 0 deletions