mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-18 03:25:55 +00:00
zaxis: reset links in the direction of travel
This commit is contained in:
parent
89ffb6658e
commit
8da22e4425
@ -1065,7 +1065,7 @@ int ncplane_move_above(ncplane* restrict n, ncplane* restrict above){
|
|||||||
}else{
|
}else{
|
||||||
n->nc->top = n->below;
|
n->nc->top = n->below;
|
||||||
}
|
}
|
||||||
if(above->above){
|
if( (n->above = above->above) ){
|
||||||
above->above->below = n;
|
above->above->below = n;
|
||||||
}else{
|
}else{
|
||||||
n->nc->top = n;
|
n->nc->top = n;
|
||||||
@ -1092,7 +1092,7 @@ int ncplane_move_below(ncplane* restrict n, ncplane* restrict below){
|
|||||||
}else{
|
}else{
|
||||||
n->nc->top = n->below;
|
n->nc->top = n->below;
|
||||||
}
|
}
|
||||||
if(below->below){
|
if( (n->below = below->below) ){
|
||||||
below->below->above = n;
|
below->below->above = n;
|
||||||
}else{
|
}else{
|
||||||
n->nc->bottom = n;
|
n->nc->bottom = n;
|
||||||
|
Loading…
Reference in New Issue
Block a user