From 08d3457cffec331625753ff9fca436f39535a55d Mon Sep 17 00:00:00 2001 From: tg Date: Sun, 5 Nov 2006 15:36:09 +0000 Subject: [PATCH] utf hack depends on emacs-usemeta off (the default) --- edit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/edit.c b/edit.c index dd36b5e..4b9c1b4 100644 --- a/edit.c +++ b/edit.c @@ -5,7 +5,7 @@ #include "sh.h" -__RCSID("$MirOS: src/bin/mksh/edit.c,v 1.39 2006/11/05 15:31:36 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/edit.c,v 1.40 2006/11/05 15:36:09 tg Exp $"); /* tty driver characters we are interested in */ typedef struct { @@ -1092,7 +1092,7 @@ static Area aedit; #define MKCTRL(x) ((x) == '?' ? 0x7F : (x) & 0x1F) /* ASCII */ #define UNCTRL(x) ((x) ^ 0x40) /* ASCII */ #define META(x) ((x) & 0x7f) -#define ISMETA(x) (Flag(FEMACSUSEMETA) && ((x) & 0x80)) +#define ISMETA(x) (!Flag(FUTFHACK) && Flag(FEMACSUSEMETA) && ((x) & 0x80)) /* values returned by keyboard functions */