* edit/edit_key_translator.c [HAVE_CHARSET]: Add charset
conversion support. From Walery Studennikov <hqsoftware@mail.ru>.
Этот коммит содержится в:
родитель
c645d780c7
Коммит
998bbab143
@ -1,5 +1,9 @@
|
||||
2001-06-05 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* edit/edit_key_translator.c [HAVE_CHARSET]: Add charset
|
||||
conversion support.
|
||||
From Walery Studennikov <hqsoftware@mail.ru>.
|
||||
|
||||
* extraconf.h [HAVE_X]: Undefine HAVE_TEXTMODE_X11_SUPPORT.
|
||||
|
||||
2001-06-01 Pavel Roskin <proski@gnu.org>
|
||||
|
@ -145,6 +145,16 @@
|
||||
break;
|
||||
}
|
||||
|
||||
#ifdef HAVE_CHARSET
|
||||
if (x_key == XCTRL('t')) {
|
||||
do_select_codepage();
|
||||
|
||||
edit->force = REDRAW_COMPLETELY;
|
||||
command = CK_Refresh;
|
||||
goto fin;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (x_key == XCTRL ('q')) {
|
||||
char_for_insertion = edit_raw_key_query (_(" Insert Literal "), _(" Press any key: "), 0);
|
||||
goto fin;
|
||||
@ -268,10 +278,17 @@
|
||||
}
|
||||
}
|
||||
/* an ordinary insertable character */
|
||||
|
||||
#ifndef HAVE_CHARSET
|
||||
if (x_key < 256 && is_printable (x_key)) {
|
||||
char_for_insertion = x_key;
|
||||
#else
|
||||
if (x_key < 256 && is_printable (conv_input [x_key])) {
|
||||
char_for_insertion = conv_input [x_key];
|
||||
#endif
|
||||
goto fin;
|
||||
}
|
||||
|
||||
/* other commands */
|
||||
i = 0;
|
||||
while (key_map[i] != x_key && (key_map[i] || key_map[i + 1]))
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user