move cursor to first character of selection
| 611 | |
| 612 | // move cursor to first character of selection |
| 613 | static void stb_textedit_move_to_first(STB_TexteditState* state) |
| 614 | { |
| 615 | if (STB_TEXT_HAS_SELECTION(state)) { |
| 616 | stb_textedit_sortselection(state); |
| 617 | state->cursor = state->select_start; |
| 618 | state->select_end = state->select_start; |
| 619 | state->has_preferred_x = 0; |
| 620 | } |
| 621 | } |
| 622 | |
| 623 | // move cursor to last character of selection |
| 624 | static void stb_textedit_move_to_last(STB_TEXTEDIT_STRING* str, STB_TexteditState* state) |
no test coverage detected