MCPcopy Create free account
hub / github.com/RenderKit/embree / stb_textedit_sortselection

Function stb_textedit_sortselection

tutorials/common/imgui/imstb_textedit.h:617–624  ·  view source on GitHub ↗

canoncialize the selection so start <= end

Source from the content-addressed store, hash-verified

615
616// canoncialize the selection so start <= end
617static void stb_textedit_sortselection(STB_TexteditState *state)
618{
619 if (state->select_end < state->select_start) {
620 int temp = state->select_end;
621 state->select_end = state->select_start;
622 state->select_start = temp;
623 }
624}
625
626// move cursor to first character of selection
627static void stb_textedit_move_to_first(STB_TexteditState *state)

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected