summaryrefslogtreecommitdiffstats
path: root/chinese/pine4/files/patch-ak
blob: dc35ee22e609a51a7640c1348f603feb7ae4124b (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	Wed Jul 15 17:02:30 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