this repo has no description
13
fork

Configure Feed

Select the types of activity you want to include in your feed.

window(print): check for col after loop and at very beginning

+8 -5
+8 -5
src/Window.zig
··· 289 289 const overflow: bool = blk: for (segments) |segment| { 290 290 var iter = self.screen.unicode.graphemeIterator(segment.text); 291 291 while (iter.next()) |grapheme| { 292 + if (col >= self.width) { 293 + row += 1; 294 + col = 0; 295 + } 292 296 if (row >= self.height) break :blk true; 293 297 const s = grapheme.bytes(segment.text); 294 298 if (std.mem.eql(u8, s, "\n")) { 295 299 row +|= 1; 296 300 col = 0; 297 301 continue; 298 - } 299 - if (col >= self.width) { 300 - row += 1; 301 - col = 0; 302 302 } 303 303 const w = self.gwidth(s); 304 304 if (w == 0) continue; ··· 313 313 col += w; 314 314 } 315 315 } else false; 316 - 316 + if (col >= self.width) { 317 + row += 1; 318 + col = 0; 319 + } 317 320 return .{ 318 321 .row = row, 319 322 .col = col,