| 1344 | } |
| 1345 | |
| 1346 | static void stb_text_makeundo_replace(STB_TEXTEDIT_STRING* str, STB_TexteditState* state, int where, int old_length, int new_length) |
| 1347 | { |
| 1348 | int i; |
| 1349 | STB_TEXTEDIT_CHARTYPE* p = stb_text_createundo(&state->undostate, where, old_length, new_length); |
| 1350 | if (p) { |
| 1351 | for (i = 0; i < old_length; ++i) |
| 1352 | p[i] = STB_TEXTEDIT_GETCHAR(str, where + i); |
| 1353 | } |
| 1354 | } |
| 1355 | |
| 1356 | // reset the state to default |
| 1357 | static void stb_textedit_clear_state(STB_TexteditState* state, int is_single_line) |
no test coverage detected