mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 03:40:16 +02:00
Revert, do not use IS_PRINTABLE in reverse_controls.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4475 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
7c84b6fc2e
commit
56902320b4
1 changed files with 3 additions and 1 deletions
|
|
@ -661,7 +661,9 @@ static char *reverse_controls(const char *str)
|
|||
out = g_string_new(NULL);
|
||||
|
||||
while (*str != '\0') {
|
||||
if (!IS_PRINTABLE((unsigned char) *str)) {
|
||||
if ((unsigned char) *str < 32 ||
|
||||
(term_type == TERM_TYPE_8BIT &&
|
||||
(unsigned char) (*str & 0x7f) < 32)) {
|
||||
/* control char */
|
||||
g_string_sprintfa(out, "%%8%c%%8",
|
||||
'A'-1 + (*str & 0x7f));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue