=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mg/kbd.c,v retrieving revision 1.22 retrieving revision 1.23 diff -u -r1.22 -r1.23 --- src/usr.bin/mg/kbd.c 2006/04/03 02:43:22 1.22 +++ src/usr.bin/mg/kbd.c 2006/12/21 18:06:02 1.23 @@ -1,4 +1,4 @@ -/* $OpenBSD: kbd.c,v 1.22 2006/04/03 02:43:22 kjell Exp $ */ +/* $OpenBSD: kbd.c,v 1.23 2006/12/21 18:06:02 kjell Exp $ */ /* This file is in the public domain. */ @@ -45,8 +45,8 @@ return (TRUE); } -#ifdef BSMAP -static int bs_map = BSMAP; +static int bs_map = 0; + /* * Toggle backspace mapping */ @@ -60,7 +60,6 @@ ewprintf("Backspace mapping %sabled", bs_map ? "en" : "dis"); return (TRUE); } -#endif /* BSMAP */ void ungetkey(int c) @@ -95,13 +94,13 @@ pushed = FALSE; } else c = ttgetc(); -#ifdef BSMAP - if (bs_map) + + if (bs_map) { if (c == CCHR('H')) c = CCHR('?'); else if (c == CCHR('?')) c = CCHR('H'); -#endif /* BSMAP */ + } if (use_metakey && (c & METABIT)) { pushedc = c & ~METABIT; pushed = TRUE;