From f617f842932a2a832cad80179887c27d8516775c Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Mon, 26 Jul 2010 02:09:15 +0200 Subject: [PATCH] Fix display of quoted (contro) characters w/o breaking 8-bit display --- src/editline.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/editline.c b/src/editline.c index 8c73b17..15cac78 100644 --- a/src/editline.c +++ b/src/editline.c @@ -158,14 +158,10 @@ static void tty_show(char c) tty_put('M'); tty_put('-'); tty_put(UNMETA(c)); - } -#if 0 - else if (ISCTL(c)) { + } else if (ISCTL(c) && !ISMETA(c)) { tty_put('^'); tty_put(UNCTL(c)); - } -#endif - else { + } else { tty_put(c); } }