1
1

fix: draw cursor on non-utf-8 console if a character is typically rendered in a double-width cell.

Этот коммит содержится в:
Ilia Maslakov 2009-04-27 12:16:53 +00:00
родитель 093d4c7e7a
Коммит 52a2f5379e

Просмотреть файл

@ -1475,8 +1475,10 @@ long edit_move_forward3 (WEdit * edit, long current, int cols, long upto)
c = edit_get_byte (edit, p);
utf_ch = edit_get_utf (edit, p, &cw);
}
if ( utf8_display ) {
if ( edit->utf8 && g_unichar_iswide(utf_ch) )
col++;
}
if (c == '\t')
col += TAB_SIZE - col % TAB_SIZE;
else if (c == '\n') {