update selection and cursor to match each other
| 673 | |
| 674 | // update selection and cursor to match each other |
| 675 | static void stb_textedit_prep_selection_at_cursor(STB_TexteditState* state) |
| 676 | { |
| 677 | if (!STB_TEXT_HAS_SELECTION(state)) |
| 678 | state->select_start = state->select_end = state->cursor; |
| 679 | else |
| 680 | state->cursor = state->select_end; |
| 681 | } |
| 682 | |
| 683 | // API cut: delete selection |
| 684 | static int stb_textedit_cut(STB_TEXTEDIT_STRING* str, STB_TexteditState* state) |
no outgoing calls
no test coverage detected