Fixed visualize key in nocolor output mode.

This commit is contained in:
vvaltman 2014-08-27 01:03:50 +04:00
parent a00f67c3a8
commit 6593402144
2 changed files with 20 additions and 1 deletions

View File

@ -1374,7 +1374,24 @@ void interpreter (char *line UU) {
for (j = 0; j < 4; j ++) {
push_color (colors[x & 3]);
push_color (COLOR_INVERSE);
printf (" ");
if (!disable_colors) {
printf (" ");
} else {
switch (x & 3) {
case 0:
printf (" ");
break;
case 1:
printf ("--");
break;
case 2:
printf ("==");
break;
case 3:
printf ("||");
break;
}
}
pop_color ();
pop_color ();
x = x >> 2;

View File

@ -457,6 +457,8 @@ void tglf_fetch_chat_full (struct tgl_chat *C) {
users[i].date = fetch_int ();
}
version = fetch_int ();
} else {
fetch_int ();
}
int *start = in_ptr;
assert (skip_type_any (TYPE_TO_PARAM (photo)) >= 0);