From 08e111dfae15d2428d87c3a80c68d858b144d287 Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Sun, 3 Jan 2021 11:24:04 +0000 Subject: Fix debug mode crash in vi-less search --- alacritty_terminal/src/term/search.rs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'alacritty_terminal/src') 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 Term { side: Side, max_lines: Option, ) -> Option { - // 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 Term { side: Side, max_lines: Option, ) -> Option { - // 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; -- cgit