Lines Matching defs:cursor
47 unsigned int cursor = string->last_cursor;
50 /* Expand region back to old cursor position if applicable */
54 /* Expand region forward to new cursor position if applicable */
55 if ( mod_end < string->cursor )
56 mod_end = string->cursor;
59 while ( cursor > mod_start ) {
61 cursor--;
65 while ( cursor < mod_end ) {
66 putchar ( ( cursor >= len ) ? ' ' : string->buf[cursor] );
67 cursor++;
70 /* Backspace to new cursor position */
71 while ( cursor > string->cursor ) {
73 cursor--;