list: reactivate item creation on split
This commit is contained in:
parent
e46c143dec
commit
647a5d77b6
1 changed files with 12 additions and 5 deletions
|
@ -307,8 +307,14 @@ impl ListEditor {
|
||||||
self.nexd();
|
self.nexd();
|
||||||
|
|
||||||
let mut b = item.ctrl.spillbuf.write().unwrap();
|
let mut b = item.ctrl.spillbuf.write().unwrap();
|
||||||
/* TODO
|
|
||||||
let mut tail_node = Context::make_node(&self.ctx, self.typ.clone(), self.depth.map(|d| d+1)).unwrap();
|
let rt = ReprTree::new_arc(self.typ.clone());
|
||||||
|
let new_edittree = self.ctx.read().unwrap()
|
||||||
|
.setup_edittree(
|
||||||
|
rt,
|
||||||
|
self.depth.map(|d| d+1)
|
||||||
|
);
|
||||||
|
let mut tail_node = new_edittree.write().unwrap();
|
||||||
tail_node.goto(TreeCursor::home());
|
tail_node.goto(TreeCursor::home());
|
||||||
|
|
||||||
for node in b.iter() {
|
for node in b.iter() {
|
||||||
|
@ -316,7 +322,7 @@ impl ListEditor {
|
||||||
.send_cmd_obj(
|
.send_cmd_obj(
|
||||||
ReprTree::new_leaf(
|
ReprTree::new_leaf(
|
||||||
Context::parse(&self.ctx, "NestedNode"),
|
Context::parse(&self.ctx, "NestedNode"),
|
||||||
SingletonBuffer::<NestedNode>::new(
|
SingletonBuffer::<EditTree>::new(
|
||||||
node.read().unwrap().clone()
|
node.read().unwrap().clone()
|
||||||
).get_port().into()
|
).get_port().into()
|
||||||
)
|
)
|
||||||
|
@ -331,11 +337,12 @@ impl ListEditor {
|
||||||
if cur.tree_addr.len() > 1 {
|
if cur.tree_addr.len() > 1 {
|
||||||
tail_node.dn();
|
tail_node.dn();
|
||||||
}
|
}
|
||||||
|
drop(tail_node);
|
||||||
|
|
||||||
self.insert(
|
self.insert(
|
||||||
Arc::new(RwLock::new(tail_node))
|
new_edittree
|
||||||
);
|
);
|
||||||
*/
|
|
||||||
} else {
|
} else {
|
||||||
self.up();
|
self.up();
|
||||||
self.listlist_split();
|
self.listlist_split();
|
||||||
|
|
Loading…
Reference in a new issue