Skip to content

Commit

Permalink
Bar: Fix logic error in abbrev_width calculation
Browse files Browse the repository at this point in the history
nmeum committed Apr 27, 2024
1 parent 3bcb836 commit 2cadcfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Bar.zig
Original file line number Diff line number Diff line change
@@ -77,7 +77,7 @@ pub fn create(monitor: *Monitor) !*Bar {
self.abbrev_width = 0;
var i: usize = 0;
while (i < self.abbrev_run.count) : (i += 1) {
self.abbrev_width = @intCast(self.abbrev_run.glyphs[i].advance.x);
self.abbrev_width += @intCast(self.abbrev_run.glyphs[i].advance.x);
}

// setup layer surface

0 comments on commit 2cadcfb

Please sign in to comment.