ui/common/types.c

changeset 486
a5f3abf8b9d1
parent 471
063a9f29098c
child 487
077c5029aaee
--- a/ui/common/types.c	Wed Mar 05 21:35:36 2025 +0100
+++ b/ui/common/types.c	Wed Mar 05 22:09:22 2025 +0100
@@ -428,7 +428,7 @@
     to->remove = from->remove;
     
     to->obj = from->obj;
-    // do not copy the undo manager
+    // do not copy the undo manager, data1, data2
 }
 
 void uic_range_copy(UiRange *from, UiRange *to) {
@@ -468,7 +468,7 @@
 
 void uic_text_save(UiText *t) {
     if(!t->obj) return;
-    t->get(t);
+    t->save(t);
     t->position(t);
 }
 
@@ -512,7 +512,6 @@
     t->length = NULL;
     t->remove = NULL;
     t->obj = NULL;
-    t->undomgr = NULL;
 }
 
 void uic_range_unbind(UiRange *r) {

mercurial