this repo has no description
13
fork

Configure Feed

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

widgets(terminal): handle (some) wrapping

+5 -6
+5 -6
src/widgets/terminal/Screen.zig
··· 153 153 grapheme: []const u8, 154 154 width: u8, 155 155 ) void { 156 - 157 - // FIXME: wrapping 158 - // if (self.cursor.col + width >= self.width) { 159 - // self.cursor.col = 0; 160 - // self.cursor.row += 1; 161 - // } 156 + // TODO: wrap mode handling 157 + if (self.cursor.col + width > self.width) { 158 + self.cursor.col = 0; 159 + self.cursor.row += 1; 160 + } 162 161 if (self.cursor.col >= self.width) return; 163 162 if (self.cursor.row >= self.height) return; 164 163 const col = self.cursor.col;