mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-02 09:40:15 +00:00
reparenting to NULL gets standard plane #982
This commit is contained in:
parent
f6c2334521
commit
ae63ad15bd
@ -2005,6 +2005,9 @@ ncplane* ncplane_reparent(ncplane* n, ncplane* newparent){
|
||||
if(n == n->nc->stdplane){
|
||||
return NULL; // can't reparent standard plane
|
||||
}
|
||||
if(newparent == NULL){
|
||||
newparent = n->nc->stdplane;
|
||||
}
|
||||
if(n->boundto == newparent){
|
||||
return n;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user