mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
change addch to addstr
This commit is contained in:
parent
83c10b2f6e
commit
e19de53a06
@ -300,8 +300,7 @@ print_to_widget (WEdit *edit, long row, int start_col, int start_col_real,
|
|||||||
lowlevel_set_color (color);
|
lowlevel_set_color (color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#ifndef HAVE_SLANG
|
int res = g_unichar_to_utf8 (textchar, str);
|
||||||
int res = g_unichar_to_utf8 (textchar, str);
|
|
||||||
if ( res == 0 ) {
|
if ( res == 0 ) {
|
||||||
str[0] = '.';
|
str[0] = '.';
|
||||||
str[1] = '\0';
|
str[1] = '\0';
|
||||||
@ -309,9 +308,6 @@ print_to_widget (WEdit *edit, long row, int start_col, int start_col_real,
|
|||||||
str[res] = '\0';
|
str[res] = '\0';
|
||||||
}
|
}
|
||||||
addstr (str);
|
addstr (str);
|
||||||
#else
|
|
||||||
addch (textchar);
|
|
||||||
#endif
|
|
||||||
p++;
|
p++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user