Lines Matching refs:undo
248 ViUndo undo; /* Information needed to implement the vi */ member
1816 gl->vi.undo.line = NULL; in new_GetLine()
1817 gl->vi.undo.buff_curpos = 0; in new_GetLine()
1818 gl->vi.undo.ntotal = 0; in new_GetLine()
1819 gl->vi.undo.saved = 0; in new_GetLine()
1950 gl->vi.undo.line = (char *) malloc(linelen + 2); in new_GetLine()
1951 if(!gl->vi.undo.line) { in new_GetLine()
1955 gl->vi.undo.line[0] = '\0'; in new_GetLine()
2077 if(gl->vi.undo.line) in del_GetLine()
2078 free(gl->vi.undo.line); in del_GetLine()
4387 int nrestore = gl->buff_curpos + nc <= gl->vi.undo.ntotal ? in gl_delete_chars()
4388 nc : gl->vi.undo.ntotal - gl->buff_curpos; in gl_delete_chars()
4393 gl_buffer_string(gl, gl->vi.undo.line + gl->buff_curpos, nrestore, in gl_delete_chars()
4404 gl_truncate_buffer(gl, (gl->vi.undo.ntotal > gl->buff_curpos) ? in gl_delete_chars()
4405 gl->vi.undo.ntotal : gl->buff_curpos); in gl_delete_chars()
7810 if(gl->vi.command && !gl->vi.undo.saved) { in gl_save_for_undo()
7811 strlcpy(gl->vi.undo.line, gl->line, gl->linelen); in gl_save_for_undo()
7812 gl->vi.undo.buff_curpos = gl->buff_curpos; in gl_save_for_undo()
7813 gl->vi.undo.ntotal = gl->ntotal; in gl_save_for_undo()
7814 gl->vi.undo.saved = 1; in gl_save_for_undo()
7835 char *undo_ptr = gl->vi.undo.line; in KT_KEY_FN()
7849 if(gl->ntotal > gl->vi.undo.ntotal) { in KT_KEY_FN()
7859 gl->vi.undo.ntotal = gl->ntotal; in KT_KEY_FN()
7868 if(gl->buff_curpos < gl->vi.undo.buff_curpos) in KT_KEY_FN()
7869 gl->vi.undo.buff_curpos = gl->buff_curpos; in KT_KEY_FN()
7871 gl->buff_curpos = gl->vi.undo.buff_curpos; in KT_KEY_FN()
8072 gl->vi.repeat.command_curpos <= gl->vi.undo.ntotal) { in KT_KEY_FN()
8080 if(gl_add_char_to_line(gl, gl->vi.undo.line[i])) in KT_KEY_FN()
8282 gl->vi.undo.saved = 0; in gl_interpret_char()
10472 gl->vi.undo.line[0] = '\0';
10473 gl->vi.undo.ntotal = 0;
10474 gl->vi.undo.buff_curpos = 0;