Lines Matching refs:undo
3322 static struct edstate *undo;
3376 undo = &undobuf;
3377 undo->cbufsize = es->cbufsize = len > LINE ? LINE : len;
3379 es->linelen = undo->linelen = 0;
3380 es->cursor = undo->cursor = 0;
3381 es->winleft = undo->winleft = 0;
3757 if (es->cursor == undo->cursor) {
3764 if (es->cursor >= undo->linelen)
3767 es->cbuf[es->cursor] = undo->cbuf[es->cursor];
3897 undo->winleft = es->winleft;
3898 memmove(undo->cbuf, es->cbuf, es->linelen);
3899 undo->linelen = es->linelen;
3900 undo->cursor = es->cursor;
4192 es = undo;
4193 undo = t;
5054 /* Undo previous expansion */
5108 /* Undo previous completion */
5164 /* expanded = PRINT; next call undo */
5181 /* If exact match, don't undo. Allows directory completions