diff options
Diffstat (limited to 'alacritty_terminal/src/term/search.rs')
-rw-r--r-- | alacritty_terminal/src/term/search.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<T> Term<T> { // 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<T> Term<T> { // 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), |