text: Add commit request

Allows for atomic state changes. Updated surrounding text, content type
and micro focus is taken into account all at once at commit.

Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
diff --git a/clients/editor.c b/clients/editor.c
index 1eb8f11..5c072f2 100644
--- a/clients/editor.c
+++ b/clients/editor.c
@@ -558,6 +558,8 @@
 					entry->text,
 					entry->cursor,
 					entry->anchor);
+
+	text_model_commit(entry->model);
 }
 
 static void