This commit is contained in:
Kovid Goyal 2018-02-01 10:26:17 +05:30
parent 93c83d03c0
commit ee4e56edf9
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -254,7 +254,7 @@ screen_change_charset(Screen *self, uint32_t which) {
void void
screen_designate_charset(Screen *self, uint32_t which, uint32_t as) { screen_designate_charset(Screen *self, uint32_t which, uint32_t as) {
bool change_g = false; bool change_g = false;
switch(which) { switch(which & 1) {
case 0: case 0:
change_g = self->g_charset == self->g0_charset; change_g = self->g_charset == self->g0_charset;
self->g0_charset = translation_table(as); self->g0_charset = translation_table(as);
@ -265,7 +265,6 @@ screen_designate_charset(Screen *self, uint32_t which, uint32_t as) {
self->g1_charset = translation_table(as); self->g1_charset = translation_table(as);
if (change_g) self->g_charset = self->g1_charset; if (change_g) self->g_charset = self->g1_charset;
break; break;
// We dont care about default as this is guaranteed to only be called with correct which by the parser
} }
} }