diff options
author | Christian Duerr <contact@christianduerr.com> | 2021-01-03 11:24:04 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-03 11:24:04 +0000 |
commit | 08e111dfae15d2428d87c3a80c68d858b144d287 (patch) | |
tree | 0ea6953c4c820ce059b05a288ed287e65dd446b3 /alacritty_terminal | |
parent | c1262d78901960b790dfb1f32bb6be99e9237c8c (diff) | |
download | alacritty-08e111dfae15d2428d87c3a80c68d858b144d287.tar.gz alacritty-08e111dfae15d2428d87c3a80c68d858b144d287.zip |
Fix debug mode crash in vi-less search
Diffstat (limited to 'alacritty_terminal')
-rw-r--r-- | alacritty_terminal/src/term/search.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/alacritty_terminal/src/term/search.rs b/alacritty_terminal/src/term/search.rs index 6a31bef0..712daa92 100644 --- a/alacritty_terminal/src/term/search.rs +++ b/alacritty_terminal/src/term/search.rs @@ -87,8 +87,6 @@ impl<T> Term<T> { side: Side, max_lines: Option<usize>, ) -> Option<Match> { - // Skip origin itself to exclude it from the search results. - let origin = origin.add_absolute(self, Boundary::Wrap, 1); let start = self.line_search_left(origin); let mut end = start; @@ -128,8 +126,6 @@ impl<T> Term<T> { side: Side, max_lines: Option<usize>, ) -> Option<Match> { - // Skip origin itself to exclude it from the search results. - let origin = origin.sub_absolute(self, Boundary::Wrap, 1); let start = self.line_search_right(origin); let mut end = start; |