projects
/
vimb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61ee4fb
)
Removed obsolete IS_CTRL macro.
author
Daniel Carl
<danielcarl@gmx.de>
Wed, 4 Jun 2014 20:02:26 +0000
(22:02 +0200)
committer
Daniel Carl
<danielcarl@gmx.de>
Wed, 4 Jun 2014 20:05:10 +0000
(22:05 +0200)
src/ascii.h
patch
|
blob
|
history
src/normal.c
patch
|
blob
|
history
diff --git
a/src/ascii.h
b/src/ascii.h
index
8f6ae9c
..
c0bb963
100644
(file)
--- 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
(file)
--- 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) {