move cursor to last character of selection
| 622 | |
| 623 | // move cursor to last character of selection |
| 624 | static 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 |
| 636 | static int is_word_boundary(STB_TEXTEDIT_STRING* str, int idx) |
no test coverage detected