canoncialize the selection so start <= end
| 615 | |
| 616 | // canoncialize the selection so start <= end |
| 617 | static 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 |
| 627 | static void stb_textedit_move_to_first(STB_TexteditState *state) |
no outgoing calls
no test coverage detected