diff options
author | Christian Duerr <contact@christianduerr.com> | 2023-08-27 18:48:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-27 16:48:55 +0000 |
commit | 73276b620782a93bad16a0d5eb7cbd14caf985e6 (patch) | |
tree | 452824b4ba48ee0efb86d1db4d2e9a8ef5ed9ad3 /alacritty/src/display | |
parent | 33306142195b354ef3485ca2b1d8a85dfc6605ca (diff) | |
download | r-alacritty-73276b620782a93bad16a0d5eb7cbd14caf985e6.tar.gz r-alacritty-73276b620782a93bad16a0d5eb7cbd14caf985e6.tar.bz2 r-alacritty-73276b620782a93bad16a0d5eb7cbd14caf985e6.zip |
Update regex-automata to v0.3.6
This seems like a sensible first step before looking into #7097.
Diffstat (limited to 'alacritty/src/display')
-rw-r--r-- | alacritty/src/display/hint.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/alacritty/src/display/hint.rs b/alacritty/src/display/hint.rs index 57087e45..774b3cdb 100644 --- a/alacritty/src/display/hint.rs +++ b/alacritty/src/display/hint.rs @@ -387,9 +387,10 @@ pub fn highlighted_at<T>( }); } - if let Some(bounds) = hint.content.regex.as_ref().and_then(|regex| { + let bounds = hint.content.regex.as_ref().and_then(|regex| { regex.with_compiled(|regex| regex_match_at(term, point, regex, hint.post_processing)) - }) { + }); + if let Some(bounds) = bounds.flatten() { return Some(HintMatch { bounds, action: hint.action.clone(), hyperlink: None }); } |