diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2007-05-03 21:37:43 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2007-05-03 21:37:43 +0000 |
commit | 56902320b4f5ff1e79502b49f63ce94a40bc84f5 (patch) | |
tree | f300667301483a9b3f50c90c4c32805f3b267f51 | |
parent | 7c84b6fc2ed23987e04a812d7ff3d12aadc3a83d (diff) | |
download | irssi-56902320b4f5ff1e79502b49f63ce94a40bc84f5.zip |
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
-rw-r--r-- | src/fe-text/statusbar.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fe-text/statusbar.c b/src/fe-text/statusbar.c index 2e54f067..9f1b09b0 100644 --- a/src/fe-text/statusbar.c +++ b/src/fe-text/statusbar.c @@ -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)); |