diff options
Diffstat (limited to 'contrib/tcsh/sh.lex.c')
-rw-r--r-- | contrib/tcsh/sh.lex.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/contrib/tcsh/sh.lex.c b/contrib/tcsh/sh.lex.c index caf202c0493c9..b252eaae344ed 100644 --- a/contrib/tcsh/sh.lex.c +++ b/contrib/tcsh/sh.lex.c @@ -1,4 +1,4 @@ -/* $Header: /src/pub/tcsh/sh.lex.c,v 3.49 1998/04/08 13:58:54 christos Exp $ */ +/* $Header: /src/pub/tcsh/sh.lex.c,v 3.50 2000/01/14 22:57:28 christos Exp $ */ /* * sh.lex.c: Lexical analysis into tokens */ @@ -36,7 +36,7 @@ */ #include "sh.h" -RCSID("$Id: sh.lex.c,v 3.49 1998/04/08 13:58:54 christos Exp $") +RCSID("$Id: sh.lex.c,v 3.50 2000/01/14 22:57:28 christos Exp $") #include "ed.h" /* #define DEBUG_INP */ @@ -295,6 +295,9 @@ word() int h; bool dolflg; int i; +#if defined(DSPMBYTE) + int mbytepos = 1; +#endif /* DSPMBYTE */ wp = wbuf; i = BUFSIZE - 4; @@ -355,6 +358,13 @@ loop: c1 = 0; dolflg = DOALL; for (;;) { +#if defined(DSPMBYTE) + if (mbytepos == 2) + mbytepos = 1; + else if (mbytepos == 1 && Ismbyte1(c) && 2 <= i) + mbytepos = 2; + else +#endif /* DSPMBYTE */ if (c1) { if (c == c1) { c1 = 0; |