Lines Matching refs:repeat

222  * needed by the vi-repeat-change command.
227 int count; /* The repeat count that was passed to the */
250 ViRepeat repeat; /* Information needed to implement the vi */
251 /* repeat command. */
440 int current_count; /* The repeat count passed to */
1399 {"repeat-history", gl_repeat_history},
1423 {"repeat-find-char", gl_repeat_find_char},
1452 {"vi-repeat-change", gl_vi_repeat_change},
1529 {"M-o", "repeat-history"},
1570 {"M-;", "repeat-find-char"},
1574 {"M-.", "vi-repeat-change"},
1820 gl->vi.repeat.action.fn = 0;
1821 gl->vi.repeat.action.data = 0;
1822 gl->vi.repeat.count = 0;
1823 gl->vi.repeat.input_curpos = 0;
1824 gl->vi.repeat.command_curpos = 0;
1825 gl->vi.repeat.input_char = '\0';
1826 gl->vi.repeat.saved = 0;
1827 gl->vi.repeat.active = 0;
2813 * as a continuation of a repeat count, or as a printable character
3213 * We may have to repeat the read if window change signals are received.
5355 * a repeat search even if the last command wasn't a history command.
5417 * a repeat search even if the last command wasn't a history command.
6811 * The 'repeat' action function sets gl->endline to tell
7130 if(gl->vi.repeat.active) {
7131 c = gl->vi.repeat.input_char;
7135 gl->vi.repeat.input_char = c;
7377 if(gl->vi.repeat.active) {
7383 * Record the details of the new search, for use by repeat finds.
7816 if(gl->vi.command && !gl->vi.repeat.saved &&
7818 gl->vi.repeat.action = gl->current_action;
7819 gl->vi.repeat.count = gl->current_count;
7820 gl->vi.repeat.saved = 1;
7873 * Since we have bipassed calling gl_save_for_undo(), record repeat
7876 gl->vi.repeat.action.fn = gl_vi_undo;
7877 gl->vi.repeat.action.data = NULL;
7878 gl->vi.repeat.count = 1;
8014 gl->vi.repeat.input_curpos = gl->insert_curpos;
8015 gl->vi.repeat.command_curpos = gl->buff_curpos;
8031 * This is the action function which implements the vi-repeat-change
8039 * Nothing to repeat?
8041 if(!gl->vi.repeat.action.fn)
8047 gl->vi.repeat.active = 1;
8051 status = gl->vi.repeat.action.fn(gl, gl->vi.repeat.count,
8052 gl->vi.repeat.action.data);
8054 * Mark the repeat as completed.
8056 gl->vi.repeat.active = 0;
8070 if(gl->vi.repeat.input_curpos >= 0 &&
8071 gl->vi.repeat.input_curpos <= gl->vi.repeat.command_curpos &&
8072 gl->vi.repeat.command_curpos <= gl->vi.undo.ntotal) {
8079 for(i=gl->vi.repeat.input_curpos; i<gl->vi.repeat.command_curpos; i++) {
8187 int count; /* The repeat count of an action function */
8208 * If the user is in the process of specifying a repeat count and the
8209 * new character is a digit, increment the repeat count accordingly.
8266 * Get the repeat count, passing the last keystroke if executing the
8283 gl->vi.repeat.saved = 0;
8286 * whether the provided repeat count was defaulted or specified
8288 * it is negative, then no repeat count was specified by the user.
8311 * Reset the repeat count after running action functions.
8333 * with the current repeat count.
10383 * If the previous line was entered via the repeat-history action,
10475 gl->vi.repeat.action.fn = 0;
10476 gl->vi.repeat.action.data = 0;