zaxis: reset links in the direction of travel

This commit is contained in:
nick black 2020-05-29 08:14:36 -04:00
parent 89ffb6658e
commit 8da22e4425
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -1065,7 +1065,7 @@ int ncplane_move_above(ncplane* restrict n, ncplane* restrict above){
}else{
n->nc->top = n->below;
}
if(above->above){
if( (n->above = above->above) ){
above->above->below = n;
}else{
n->nc->top = n;
@ -1092,7 +1092,7 @@ int ncplane_move_below(ncplane* restrict n, ncplane* restrict below){
}else{
n->nc->top = n->below;
}
if(below->below){
if( (n->below = below->below) ){
below->below->above = n;
}else{
n->nc->bottom = n;