minor changes

This commit is contained in:
Alessandro Mauri 2019-12-03 21:45:48 +01:00
parent fac8e0d96a
commit b0a5fb35e9
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -15,7 +15,6 @@
#define CTRL(k) ((k) & 0x1f) // Control mask modifier #define CTRL(k) ((k) & 0x1f) // Control mask modifier
#define STAT_SIZE 128 #define STAT_SIZE 128
#define CBUF_SIZE 2048 #define CBUF_SIZE 2048
#define MAX_LINE 1024
#define MODE_MASK 0x1 #define MODE_MASK 0x1
#define COMMAND_MASK 0x06 #define COMMAND_MASK 0x06
@ -332,8 +331,9 @@ void drawLines (void)
while (isCont(rows.rw[ln].render[start])) start++; while (isCont(rows.rw[ln].render[start])) start++;
static wchar_t converted_line[MAX_LINE]; static wchar_t converted_line[MAX_LINE];
static int x = 0; static int x;
for (x = 0; x < MAX_LINE; x++) converted_line[x] = 0; for (x = 0; x < MAX_LINE; x++) converted_line[x] = 0;
mbstowcs(converted_line, &rows.rw[ln].render[start], MAX_LINE); mbstowcs(converted_line, &rows.rw[ln].render[start], MAX_LINE);
addnwstr(converted_line, t.dim.x + 1); addnwstr(converted_line, t.dim.x + 1);