From: Daniel Carl Date: Wed, 4 Jun 2014 20:02:26 +0000 (+0200) Subject: Removed obsolete IS_CTRL macro. X-Git-Url: https://git.owens.tech/git.owens.tech/git.owens.tech/git?a=commitdiff_plain;h=008056cbb4e7a2a0bc1169d5257c3c10f09b2c2e;p=vimb.git Removed obsolete IS_CTRL macro. --- 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) {