summaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
authorexp802023-03-18 16:16:40 +0000
committerGitHub2023-03-18 16:16:40 +0000
commit770496511c67cf276f0b0a292e7a82fbd1b5f778 (patch)
tree08af197751683d3f333bab717b643f730a0abc17 /helix-term/src
parentac2a7731a6d04b8b913f49531058c7e2a843efd5 (diff)
Fix highlighting in picker with multiple columns (#6333)
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/ui/picker.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/helix-term/src/ui/picker.rs b/helix-term/src/ui/picker.rs
index bc2f98ee..3294a2a1 100644
--- a/helix-term/src/ui/picker.rs
+++ b/helix-term/src/ui/picker.rs
@@ -812,7 +812,10 @@ impl<T: Item + 'static> Component for Picker<T> {
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;