Lines Matching refs:undo
3457 static struct edstate *undo; variable
3512 undo = &undobuf; in x_vi()
3513 undo->cbufsize = es->cbufsize = len > LINE ? LINE : len; in x_vi()
3515 es->linelen = undo->linelen = 0; in x_vi()
3516 es->cursor = undo->cursor = 0; in x_vi()
3517 es->winleft = undo->winleft = 0; in x_vi()
3897 if (es->cursor == undo->cursor) { in vi_insert()
3904 if (es->cursor >= undo->linelen) in vi_insert()
3907 es->cbuf[es->cursor] = undo->cbuf[es->cursor]; in vi_insert()
4038 undo->winleft = es->winleft; in vi_cmd()
4039 memmove(undo->cbuf, es->cbuf, es->linelen); in vi_cmd()
4040 undo->linelen = es->linelen; in vi_cmd()
4041 undo->cursor = es->cursor; in vi_cmd()
4337 es = undo; in vi_cmd()
4338 undo = t; in vi_cmd()