MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / stb_textedit_delete

Function stb_textedit_delete

KBotExt/imgui/imstb_textedit.h:578–583  ·  view source on GitHub ↗

delete characters while updating undo

Source from the content-addressed store, hash-verified

576
577// delete characters while updating undo
578static 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
586static void stb_textedit_delete_selection(STB_TEXTEDIT_STRING* str, STB_TexteditState* state)

Callers 2

stb_textedit_keyFunction · 0.85

Calls 2

stb_text_makeundo_deleteFunction · 0.85
STB_TEXTEDIT_DELETECHARSFunction · 0.85

Tested by

no test coverage detected