Lines Matching refs:cursor
54 assert ( string->cursor <= old_len ); in insert_delete()
55 max_delete_len = ( old_len - string->cursor ); in insert_delete()
65 string->mod_start = string->cursor; in insert_delete()
69 memmove ( ( string->buf + string->cursor + insert_len ), in insert_delete()
70 ( string->buf + string->cursor + delete_len ), in insert_delete()
74 memcpy ( ( string->buf + string->cursor ), insert_text, insert_len ); in insert_delete()
75 string->cursor += insert_len; in insert_delete()
105 if ( string->cursor > 0 ) { in backspace()
106 string->cursor--; in backspace()
142 string->last_cursor = string->cursor; in edit_string()
143 string->mod_start = string->cursor; in edit_string()
144 string->mod_end = string->cursor; in edit_string()
167 string->cursor = 0; in edit_string()
172 string->cursor = len; in edit_string()
177 if ( string->cursor > 0 ) in edit_string()
178 string->cursor--; in edit_string()
183 if ( string->cursor < len ) in edit_string()
184 string->cursor++; in edit_string()