mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-25 19:03:30 +04:00
Fix highlighting in picker with multiple columns (#6333)
This commit is contained in:
parent
ac2a7731a6
commit
770496511c
@ -812,7 +812,10 @@ fn render(&mut self, area: Rect, surface: &mut Surface, cx: &mut Context) {
|
||||
for cell in row.cells.iter_mut() {
|
||||
let spans = match cell.content.lines.get(0) {
|
||||
Some(s) => s,
|
||||
None => continue,
|
||||
None => {
|
||||
cell_start_byte_offset += TEMP_CELL_SEP.len();
|
||||
continue;
|
||||
}
|
||||
};
|
||||
|
||||
let mut cell_len = 0;
|
||||
|
@ -453,10 +453,12 @@ fn from(text: &Text<'a>) -> String {
|
||||
let mut output = String::with_capacity(size);
|
||||
|
||||
for spans in &text.lines {
|
||||
if !output.is_empty() {
|
||||
output.push('\n');
|
||||
}
|
||||
for span in &spans.0 {
|
||||
output.push_str(&span.content);
|
||||
}
|
||||
output.push('\n');
|
||||
}
|
||||
output
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user