Lines Matching refs:cursor
45 unsigned int cursor = string->last_cursor;
48 /* Expand region back to old cursor position if applicable */
52 /* Expand region forward to new cursor position if applicable */
53 if ( mod_end < string->cursor )
54 mod_end = string->cursor;
57 while ( cursor > mod_start ) {
59 cursor--;
63 while ( cursor < mod_end ) {
64 putchar ( ( cursor >= len ) ? ' ' : string->buf[cursor] );
65 cursor++;
68 /* Backspace to new cursor position */
69 while ( cursor > string->cursor ) {
71 cursor--;