提交 c4530794 编写于 作者: S Scott Graham

cursor should move on shift-home and shift-end

上级 3557e663
...@@ -959,7 +959,7 @@ retry: ...@@ -959,7 +959,7 @@ retry:
stb_textedit_clamp(str, state); stb_textedit_clamp(str, state);
stb_textedit_prep_selection_at_cursor(state); stb_textedit_prep_selection_at_cursor(state);
stb_textedit_find_charpos(&find, str, state->cursor, state->single_line); stb_textedit_find_charpos(&find, str, state->cursor, state->single_line);
state->select_end = find.first_char; state->cursor = state->select_end = find.first_char;
state->has_preferred_x = 0; state->has_preferred_x = 0;
break; break;
} }
...@@ -969,7 +969,7 @@ retry: ...@@ -969,7 +969,7 @@ retry:
stb_textedit_clamp(str, state); stb_textedit_clamp(str, state);
stb_textedit_prep_selection_at_cursor(state); stb_textedit_prep_selection_at_cursor(state);
stb_textedit_find_charpos(&find, str, state->cursor, state->single_line); stb_textedit_find_charpos(&find, str, state->cursor, state->single_line);
state->select_end = find.first_char + find.length; state->cursor = state->select_end = find.first_char + find.length;
state->has_preferred_x = 0; state->has_preferred_x = 0;
break; break;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册