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

Function stb_textedit_move_to_last

KBotExt/imgui/imstb_textedit.h:624–633  ·  view source on GitHub ↗

move cursor to last character of selection

Source from the content-addressed store, hash-verified

622
623// move cursor to last character of selection
624static void stb_textedit_move_to_last(STB_TEXTEDIT_STRING* str, STB_TexteditState* state)
625{
626 if (STB_TEXT_HAS_SELECTION(state)) {
627 stb_textedit_sortselection(state);
628 stb_textedit_clamp(str, state);
629 state->cursor = state->select_end;
630 state->select_start = state->select_end;
631 state->has_preferred_x = 0;
632 }
633}
634
635#ifdef STB_TEXTEDIT_IS_SPACE
636static int is_word_boundary(STB_TEXTEDIT_STRING* str, int idx)

Callers 1

stb_textedit_keyFunction · 0.85

Calls 2

stb_textedit_clampFunction · 0.85

Tested by

no test coverage detected