diff options
author | Christian Duerr <chrisduerr@users.noreply.github.com> | 2019-03-23 11:56:46 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-23 11:56:46 +0000 |
commit | d8272662db4a4dc1ef58b8379dc88162066a3241 (patch) | |
tree | 8a2fbbac88d867252fd825e3959f470abb89517f /src/cli.rs | |
parent | d29c30900743f3e7f864f7951edf34c7423accd8 (diff) | |
download | alacritty-d8272662db4a4dc1ef58b8379dc88162066a3241.tar.gz alacritty-d8272662db4a4dc1ef58b8379dc88162066a3241.zip |
Fix URL parsing with double-width characters
Since double-width characters are followed by an empty cell containing
only the `WIDE_CELL_SPACER` flag, the URL parser would stop once
encountering the cell after a double-width character.
By skipping cells that contain the `WIDE_CELL_SPACER` flag and
incrementing the URL length by unicode width of the character instead of
cell count, this can be resolved for both URL launching and URL
highlighting.
Fixes #2158.
Diffstat (limited to 'src/cli.rs')
0 files changed, 0 insertions, 0 deletions