add more convertion before draw text

This commit is contained in:
Ilia Maslakov 2009-04-16 21:17:58 +00:00
parent c03c4de5cc
commit d4148989ed

View File

@ -330,7 +330,7 @@ edit_draw_this_line (WEdit *edit, long b, long row, long start_col,
eval_marks (edit, &m1, &m2); eval_marks (edit, &m1, &m2);
if (row <= edit->total_lines - edit->start_line) { if (row <= edit->total_lines - edit->start_line) {
long tws; long tws = 0;
if (use_colors && visible_tws) { if (use_colors && visible_tws) {
tws = edit_eol (edit, b); tws = edit_eol (edit, b);
while (tws > b && ((c = edit_get_byte (edit, tws - 1)) == ' ' while (tws > b && ((c = edit_get_byte (edit, tws - 1)) == ' '
@ -432,10 +432,16 @@ edit_draw_this_line (WEdit *edit, long b, long row, long start_col,
} }
/* fallthrough */ /* fallthrough */
default: default:
if (!edit->utf8) { if ( utf8_display ) {
c = convert_to_display_c (c); if ( !edit->utf8 ) {
//c = convert_from_utf_to_current_c (c);
}
} else { } else {
//FIXME: if need if ( edit->utf8 ) {
//c = convert_to_utf (c);
} else {
c = convert_to_display_c (c);
}
} }
/* Caret notation for control characters */ /* Caret notation for control characters */
if (c < 32) { if (c < 32) {