=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mg/echo.c,v retrieving revision 1.45 retrieving revision 1.46 diff -u -r1.45 -r1.46 --- src/usr.bin/mg/echo.c 2006/03/30 18:32:07 1.45 +++ src/usr.bin/mg/echo.c 2006/04/02 17:18:58 1.46 @@ -1,4 +1,4 @@ -/* $OpenBSD: echo.c,v 1.45 2006/03/30 18:32:07 kjell Exp $ */ +/* $OpenBSD: echo.c,v 1.46 2006/04/02 17:18:58 kjell Exp $ */ /* This file is in the public domain. */ @@ -420,6 +420,7 @@ ttputc('\b'); --ttcol; } + epos--; } while ((cpos > 0) && ISWORD(buf[cpos - 1])) { ttputc('\b'); @@ -432,6 +433,7 @@ ttputc('\b'); --ttcol; } + epos--; } ttflush(); break;