From 96fc9ecc9a62c8a766da745d05fbe60e6c2e1efe Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Tue, 13 Apr 2021 03:24:42 +0000 Subject: Add vi/mouse hint highlighting support This patch removes the old url highlighting code and replaces it with a new implementation making use of hints as sources for finding matches in the terminal. --- alacritty_terminal/src/term/search.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alacritty_terminal') diff --git a/alacritty_terminal/src/term/search.rs b/alacritty_terminal/src/term/search.rs index 638df670..93345e4f 100644 --- a/alacritty_terminal/src/term/search.rs +++ b/alacritty_terminal/src/term/search.rs @@ -82,7 +82,7 @@ impl Term { // Limit maximum number of lines searched. end = match max_lines { Some(max_lines) => { - let line = (start.line + max_lines).grid_clamp(self, Boundary::Grid); + let line = (start.line + max_lines).grid_clamp(self, Boundary::None); Point::new(line, self.last_column()) }, _ => end.sub(self, Boundary::None, 1), @@ -121,7 +121,7 @@ impl Term { // Limit maximum number of lines searched. end = match max_lines { Some(max_lines) => { - let line = (start.line - max_lines).grid_clamp(self, Boundary::Grid); + let line = (start.line - max_lines).grid_clamp(self, Boundary::None); Point::new(line, Column(0)) }, _ => end.add(self, Boundary::None, 1), -- cgit v1.2.3