@@ -10,10 +10,7 @@ use cassowary::{
10 {Expression, Solver},
10 {Expression, Solver},
12use helix_view::graphics::{Rect, Style};
12use helix_view::graphics::{Rect, Style};
14− collections::HashMap,
13+use std::collections::HashMap;
15− iter::{self, Iterator},
17use unicode_width::UnicodeWidthStr;
14use unicode_width::UnicodeWidthStr;
19/// A [`Cell`] contains the [`Text`] to be displayed in a [`Row`] of a [`Table`].
16/// A [`Cell`] contains the [`Text`] to be displayed in a [`Row`] of a [`Table`].
@@ -415,9 +412,7 @@ impl<'a> Table<'a> {
415 let has_selection = state.selected.is_some();
412 let has_selection = state.selected.is_some();
416 let columns_widths = self.get_columns_widths(table_area.width, has_selection);
413 let columns_widths = self.get_columns_widths(table_area.width, has_selection);
417 let highlight_symbol = self.highlight_symbol.unwrap_or("");
414 let highlight_symbol = self.highlight_symbol.unwrap_or("");
418− let blank_symbol = iter::repeat(" ")
415+ let blank_symbol = " ".repeat(highlight_symbol.width());
419− .take(highlight_symbol.width())
420− .collect::<String>();
421 let mut current_height = 0;
416 let mut current_height = 0;
422 let mut rows_height = table_area.height;
417 let mut rows_height = table_area.height;