From b75821f1d765373bfb0cb351f82dca1992cd066b Mon Sep 17 00:00:00 2001 From: kyoto7250 <50972773+kyoto7250@users.noreply.github.com> Date: Fri, 8 Apr 2022 10:07:30 +0900 Subject: [PATCH] Change function name and remove unused argument --- src/components/table.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/table.rs b/src/components/table.rs index c1c9b50..5855f72 100644 --- a/src/components/table.rs +++ b/src/components/table.rs @@ -200,7 +200,7 @@ impl TableComponent { } } - fn expand_selection_by_horizontal_line(&mut self, _positive: bool) { + fn expand_selected_by_horizontal_line(&mut self) { if self.selection_area_corner.is_none() { self.selected_column = 0; self.selection_area_corner = Some(( @@ -577,7 +577,7 @@ impl Component for TableComponent { self.expand_selected_area_x(true); return Ok(EventState::Consumed); } else if key == self.key_config.extend_selection_by_horizontal_line { - self.expand_selection_by_horizontal_line(true); + self.expand_selected_by_horizontal_line(); return Ok(EventState::Consumed); } Ok(EventState::NotConsumed)