ref: 076096db29da41161b44e3b7419ef3afb9a7b416
parent: 71200f02f77aa96a756123d8b75a974498b2a211
author: cancel <cancel@cancel.fm>
date: Fri Dec 14 03:25:18 EST 2018
Cleanup
--- a/tui_main.c
+++ b/tui_main.c
@@ -460,10 +460,11 @@
Usz cols = (Usz)(draw_w - draw_x);
if (field_w - offset_x < cols)
cols = field_w - offset_x;
+ if (Bufcount < cols)
+ cols = Bufcount;
if (rows == 0 || cols == 0)
return;
bool use_rulers = ruler_spacing_y != 0 && ruler_spacing_x != 0;
- (void)use_rulers;
for (Usz iy = 0; iy < rows; ++iy) {
Usz line_offset = (offset_y + iy) * field_w + offset_x;
Glyph const* g_row = gbuffer + line_offset;