summaryrefslogtreecommitdiffstats
path: root/chinese/pine4/files/patch-an
blob: a8c1da0519ceec9cbd46c0b3c6511b44a452aeb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- pico/estruct.h.orig	Fri May 29 06:56:52 1998
+++ pico/estruct.h	Tue Aug  4 12:42:14 1998
@@ -125,7 +125,7 @@
 #define	LOBIT_CHAR(C)	((C) > 0x1f && (C) < 0x7f)
 #define	HIBIT_CHAR(C)	((C) > 0x7f && (C) <= 0xff)
 #define	HIBIT_OK(C)	(!(gmode & MDHBTIGN))
-#define	VALID_KEY(C)	(LOBIT_CHAR(C) || (HIBIT_OK(C) && HIBIT_CHAR(C)))
+#define	VALID_KEY(C)	(((C) & 0x80) ? 1 : LOBIT_CHAR(C))
 #define ctrl(c)         ((c) & 0x1f)    /* control character mapping */
 
 #define STDIN_FD	0
OpenPOWER on IntegriCloud