Skip to content

Commit 33fc566

Browse files
committed
graph symbols and lane count with lane idx
1 parent 4c25936 commit 33fc566

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

src/components/utils/graphrow.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@ pub const SYM_COMMIT_BRANCH: &str = "*";
33
pub const SYM_COMMIT_MERGE: &str = "M";
44
pub const SYM_COMMIT_STASH: &str = "*";
55
pub const SYM_COMMIT_UNCOMMITTED: &str = "+";
6-
pub const SYM_CROSS: &str = "╋";
76
pub const SYM_VERTICAL: &str = "┃";
87
pub const SYM_VERTICAL_DOTTED: &str = "╏";
98
pub const SYM_HORIZONTAL: &str = "━";
109
pub const SYM_MERGE_BRIDGE_START: &str = "┓";
1110
pub const SYM_MERGE_BRIDGE_MID: &str = "━";
1211
pub const SYM_MERGE_BRIDGE_END: &str = "┏";
1312
pub const SYM_BRANCH_UP: &str = "┛";
14-
pub const SYM_BRANCH_DOWN: &str = "┓";
1513
pub const SYM_BRANCH_UP_RIGHT: &str = "┗";
14+
pub const SYM_TEE_LEFT: &str = "┫";
15+
pub const SYM_TEE_RIGHT: &str = "┣";
16+
pub const SYM_TEE_UP: &str = "┻";
17+
pub const SYM_TEE_DOWN: &str = "┳";
1618
pub const SYM_SPACE: &str = " ";

src/components/utils/logitems.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ impl LogEntry {
8383
}
8484
}
8585

86-
///
86+
/// A batch of parsed log entries with an index offset.
8787
#[derive(Default)]
8888
pub struct ItemBatch {
8989
index_offset: Option<usize>,
@@ -154,9 +154,9 @@ impl ItemBatch {
154154

155155
///
156156
pub fn set_graph_rows(&mut self, rows: Vec<GraphRow>) {
157-
let mut max = 0;
157+
let mut max: usize = 0;
158158
for (entry, row) in self.items.iter_mut().zip(rows) {
159-
max = max.max(row.lane_count);
159+
max = max.max(row.lane_count.into());
160160
entry.graph = Some(row);
161161
}
162162
self.max_lane = max;

0 commit comments

Comments
 (0)