diff --git a/src/cmd/ksh93/edit/emacs.c b/src/cmd/ksh93/edit/emacs.c index 6ca2aa963..195259835 100644 --- a/src/cmd/ksh93/edit/emacs.c +++ b/src/cmd/ksh93/edit/emacs.c @@ -1445,7 +1445,7 @@ static void draw(register Emacs_t *ep,Draw_t option) *****************************************/ - if(logcursor > sptr) + if(logcursor > drawbuff) i = *(logcursor-1); /* last character inserted */ else i = 0;