summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gmdocument.c1
-rw-r--r--src/ui/inputwidget.c4
2 files changed, 4 insertions, 1 deletions
diff --git a/src/gmdocument.c b/src/gmdocument.c
index ad8616a3..b95f85e7 100644
--- a/src/gmdocument.c
+++ b/src/gmdocument.c
@@ -1488,6 +1488,7 @@ static void normalize_GmDocument(iGmDocument *d) {
1488 appendCStr_String(normalized, "\n"); 1488 appendCStr_String(normalized, "\n");
1489 } 1489 }
1490 set_String(&d->source, collect_String(normalized)); 1490 set_String(&d->source, collect_String(normalized));
1491 normalize_String(&d->source); /* NFC */
1491} 1492}
1492 1493
1493void setUrl_GmDocument(iGmDocument *d, const iString *url) { 1494void setUrl_GmDocument(iGmDocument *d, const iString *url) {
diff --git a/src/ui/inputwidget.c b/src/ui/inputwidget.c
index 0dc5ffcb..32fb5ccb 100644
--- a/src/ui/inputwidget.c
+++ b/src/ui/inputwidget.c
@@ -547,7 +547,9 @@ void setText_InputWidget(iInputWidget *d, const iString *text) {
547 } 547 }
548 clearUndo_InputWidget_(d); 548 clearUndo_InputWidget_(d);
549 clear_Array(&d->text); 549 clear_Array(&d->text);
550 iConstForEach(String, i, text) { 550 iString *nfcText = collect_String(copy_String(text));
551 normalize_String(nfcText);
552 iConstForEach(String, i, nfcText) {
551 pushBack_Array(&d->text, &i.value); 553 pushBack_Array(&d->text, &i.value);
552 } 554 }
553 if (isFocused_Widget(d)) { 555 if (isFocused_Widget(d)) {