aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/synthpod_common_nk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/synthpod_common_nk.c b/plugins/synthpod_common_nk.c
index 74bf7608..9896ef18 100644
--- a/plugins/synthpod_common_nk.c
+++ b/plugins/synthpod_common_nk.c
@@ -3803,8 +3803,8 @@ _widget_string(plughandle_t *handle, struct nk_context *ctx,
if(has_shift_enter)
#endif
flags |= NK_EDIT_SIG_ENTER;
- const nk_flags state = nk_edit_buffer(ctx, flags,
- editor, nk_filter_default);
+ const nk_flags state = nk_edit_buffer(ctx, flags, editor, nk_filter_default);
+ _textedit_zero_terminate(editor);
if(state & NK_EDIT_COMMITED)
commited = true;
#if 0 //FIXME