Diff

util/stanza.lua @ 181:d952eae776dc

Don't set cursor inside added child when using add_child()
author Matthew Wild <mwild1@gmail.com>
date Sun, 26 Oct 2008 14:39:52 +0000
parent 180:d8b9a19d70eb
child 209:e9de0803676d
line wrap: on
line diff
--- a/util/stanza.lua	Sun Oct 26 14:27:10 2008 +0000
+++ b/util/stanza.lua	Sun Oct 26 14:39:52 2008 +0000
@@ -53,7 +53,6 @@
 
 function stanza_mt:add_child(child)
 	(self.last_add[#self.last_add] or self):add_direct_child(child);
-	t_insert(self.last_add, s);
 	return self;
 end