Lines Matching defs:redo_point
315 short undo_point, redo_point;
1093 state->redo_point = STB_TEXTEDIT_UNDOSTATECOUNT;
1124 if (state->redo_point <= k) {
1132 for (i=state->redo_point; i < k; ++i)
1136 // now move all the redo records towards the end of the buffer; the first one is at 'redo_point'
1138 size_t move_size = (size_t)((STB_TEXTEDIT_UNDOSTATECOUNT - state->redo_point - 1) * sizeof(state->undo_rec[0]));
1141 IM_ASSERT(((char*)(state->undo_rec + state->redo_point)) >= buf_begin);
1142 IM_ASSERT(((char*)(state->undo_rec + state->redo_point + 1) + move_size) <= buf_end);
1143 STB_TEXTEDIT_memmove(state->undo_rec + state->redo_point+1, state->undo_rec + state->redo_point, move_size);
1145 // now move redo_point to point to the new one
1146 ++state->redo_point;
1203 r = &s->undo_rec[s->redo_point-1];
1230 if (s->redo_point == STB_TEXTEDIT_UNDOSTATECOUNT)
1235 r = &s->undo_rec[s->redo_point-1];
1259 s->redo_point--;
1266 if (s->redo_point == STB_TEXTEDIT_UNDOSTATECOUNT)
1271 r = s->undo_rec[s->redo_point];
1310 s->redo_point++;
1343 state->undostate.redo_point = STB_TEXTEDIT_UNDOSTATECOUNT;