Change function name and remove unused argument

pull/141/head
kyoto7250 2 years ago
parent af0e59c9d4
commit b75821f1d7

@ -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)

Loading…
Cancel
Save