* help.c (show): Cast *paint_start to unsigned char to display
Cyryllic with ncurses. [HAS_ACS_AS_PCCHARS] (acs2pc_table): Make const.
Этот коммит содержится в:
родитель
f289243ff2
Коммит
fe2fdc4057
@ -90,7 +90,7 @@ static int inside_link_area = 0;
|
||||
static int help_callback (struct Dlg_head *h, int id, int msg);
|
||||
|
||||
#ifdef HAS_ACS_AS_PCCHARS
|
||||
static struct {
|
||||
static const struct {
|
||||
int acscode;
|
||||
int pccode;
|
||||
} acs2pc_table [] = {
|
||||
@ -369,7 +369,7 @@ static void show (Dlg_head *h, char *paint_start)
|
||||
selected_item = NULL;
|
||||
|
||||
for (p = paint_start; *p != CHAR_NODE_END && line < help_lines; p++){
|
||||
c = *p;
|
||||
c = (unsigned char)*p;
|
||||
switch (c){
|
||||
case CHAR_LINK_START:
|
||||
if (selected_item == NULL)
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user