ui/cocoa/text.m

changeset 1068
1c79dbd248f4
parent 784
2fded9495930
--- a/ui/cocoa/text.m	Sun Feb 01 18:38:06 2026 +0100
+++ b/ui/cocoa/text.m	Mon Feb 02 20:59:13 2026 +0100
@@ -120,7 +120,7 @@
     return strdup(sub.UTF8String);
 }
 
-void ui_textarea_insert(UiText *text, int pos, char *str) {
+void ui_textarea_insert(UiText *text, int pos, const char *str) {
     NSTextView *textview = (__bridge NSTextView*)text->obj;
     NSString *s = [[NSString alloc] initWithUTF8String:str];
     NSAttributedString *attributedStr = [[NSAttributedString alloc] initWithString:s];

mercurial