Fix Shift + End in nk_edit

This commit is contained in:
opsJson 2022-07-25 20:07:20 -03:00 committed by GitHub
parent 0bbb235c7e
commit 3b5009255e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -26423,6 +26423,7 @@ retry:
if (shift_mod) {
nk_textedit_prep_selection_at_cursor(state);
state->cursor = state->select_end = state->string.len;
if (state->select_start >= state->select_end) state->select_start = 0;
state->has_preferred_x = 0;
} else {
state->cursor = state->string.len;
@ -30006,4 +30007,3 @@ nk_tooltipfv(struct nk_context *ctx, const char *fmt, va_list args)
/// in libraries and brought me to create some of my own. Finally Apoorva Joshi
/// for his single header file packer.
*/