delete characters while updating undo
| 576 | |
| 577 | // delete characters while updating undo |
| 578 | static void stb_textedit_delete(STB_TEXTEDIT_STRING* str, STB_TexteditState* state, int where, int len) |
| 579 | { |
| 580 | stb_text_makeundo_delete(str, state, where, len); |
| 581 | STB_TEXTEDIT_DELETECHARS(str, where, len); |
| 582 | state->has_preferred_x = 0; |
| 583 | } |
| 584 | |
| 585 | // delete the section |
| 586 | static void stb_textedit_delete_selection(STB_TEXTEDIT_STRING* str, STB_TexteditState* state) |
no test coverage detected