From 008056cbb4e7a2a0bc1169d5257c3c10f09b2c2e Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Wed, 4 Jun 2014 22:02:26 +0200 Subject: [PATCH] Removed obsolete IS_CTRL macro. --- src/ascii.h | 3 +-- src/normal.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ascii.h b/src/ascii.h index 8f6ae9c..c0bb963 100644 --- a/src/ascii.h +++ b/src/ascii.h @@ -76,8 +76,7 @@ static const unsigned char chartable[256] = { #define CSI 0x80 #define CSI_STR "\x80" -/* check if the char c is a char with CTRL like ^C */ -#define IS_CTRL(c) (((unsigned char)c) <= 0x1f) +/* get internal representation for conrol character ^C */ #define CTRL(c) ((c) ^ 0x40) #define IS_SPECIAL(c) (c < 0) diff --git a/src/normal.c b/src/normal.c index 52e140b..9ffe4c8 100644 --- a/src/normal.c +++ b/src/normal.c @@ -334,7 +334,7 @@ static char *transchar(int c) { static char trans[5]; int i = 0; - if (IS_CTRL(c)) { + if (VB_IS_CTRL(c)) { trans[i++] = '^'; trans[i++] = CTRL(c); } else if ((unsigned)c >= 0x80) { -- 2.20.1