aboutsummaryrefslogtreecommitdiff
path: root/nuklear/nuklear.h
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2016-12-22 20:53:37 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2016-12-22 20:53:37 +0100
commitb6ab276f3dbb39a5a4799508b4dd0eb81488171f (patch)
treec458141cc30ea3426a0a377424651dc5280151a3 /nuklear/nuklear.h
parente309762a25a69ce5a2f4f215db6ed1742c9f1f02 (diff)
parent928cd5f2dd3285f3ead24734c7ef01a7f553f224 (diff)
downloadmidi_matrix.lv2-b6ab276f3dbb39a5a4799508b4dd0eb81488171f.tar.xz
Merge commit '928cd5f2dd3285f3ead24734c7ef01a7f553f224'
Diffstat (limited to 'nuklear/nuklear.h')
-rw-r--r--nuklear/nuklear.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/nuklear/nuklear.h b/nuklear/nuklear.h
index 5fa4a51..67f4be3 100644
--- a/nuklear/nuklear.h
+++ b/nuklear/nuklear.h
@@ -14289,7 +14289,11 @@ nk_do_edit(nk_flags *state, struct nk_command_buffer *out,
if (!prev_state && edit->active) {
const enum nk_text_edit_type type = (flags & NK_EDIT_MULTILINE) ?
NK_TEXT_EDIT_MULTI_LINE: NK_TEXT_EDIT_SINGLE_LINE;
+ const int cursor = edit->cursor;
+ const struct nk_vec2 scrollbar = edit->scrollbar;
nk_textedit_clear_state(edit, type, filter);
+ edit->cursor = cursor;
+ edit->scrollbar = scrollbar;
if (flags & NK_EDIT_ALWAYS_INSERT_MODE)
edit->mode = NK_TEXT_EDIT_MODE_INSERT;
if (flags & NK_EDIT_AUTO_SELECT)