diff --git a/apps/plugins/viewer.c b/apps/plugins/viewer.c index 607d805693..e30f08defb 100644 --- a/apps/plugins/viewer.c +++ b/apps/plugins/viewer.c @@ -268,7 +268,7 @@ bool done = false; int col = 0; #define ADVANCE_COUNTERS(c) { width += glyph_width(c); k++; } -#define LINE_IS_FULL ((k draw_columns)) +#define LINE_IS_FULL ((k>=MAX_COLUMNS-1) ||( width >= draw_columns)) #define LINE_IS_NOT_FULL ((kiso_decode(scratch_buffer + col, utf8_buffer, - prefs.encoding, draw_columns/glyph_width('a')); + prefs.encoding, draw_columns/glyph_width('i')); *endptr = 0; } }