diff options
author | Christian Duerr <chrisduerr@users.noreply.github.com> | 2019-08-03 13:19:33 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-03 13:19:33 +0000 |
commit | 5a40149069c91f63f9dcbf5fb46b36144b30eb95 (patch) | |
tree | 8503ba4ad05ac7e77268a29809c2800cd24da1b0 /alacritty_terminal/src/term/mod.rs | |
parent | 9dddf649a15d103295f4ce97b8ae4c178c9623e0 (diff) | |
download | alacritty-5a40149069c91f63f9dcbf5fb46b36144b30eb95.tar.gz alacritty-5a40149069c91f63f9dcbf5fb46b36144b30eb95.zip |
Move modifier check before URL search
This makes sure that the URL search is only initiated when all required
modifiers are held down. This should improve performance with long URLs.
Diffstat (limited to 'alacritty_terminal/src/term/mod.rs')
-rw-r--r-- | alacritty_terminal/src/term/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/alacritty_terminal/src/term/mod.rs b/alacritty_terminal/src/term/mod.rs index 0cc2cd6d..2d1ec392 100644 --- a/alacritty_terminal/src/term/mod.rs +++ b/alacritty_terminal/src/term/mod.rs @@ -1350,6 +1350,7 @@ impl Term { parser.reset(); } + // Advance parser match parser.advance(cell.c) { ParserState::Url(length) => { urls.push(Url::new(point, length + extra_url_len, num_cols)) |