| 1334 | } |
| 1335 | |
| 1336 | static void stb_text_makeundo_delete(STB_TEXTEDIT_STRING* str, STB_TexteditState* state, int where, int length) |
| 1337 | { |
| 1338 | int i; |
| 1339 | STB_TEXTEDIT_CHARTYPE* p = stb_text_createundo(&state->undostate, where, length, 0); |
| 1340 | if (p) { |
| 1341 | for (i = 0; i < length; ++i) |
| 1342 | p[i] = STB_TEXTEDIT_GETCHAR(str, where + i); |
| 1343 | } |
| 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 | { |
no test coverage detected