mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-10-31 15:20:13 +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{
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user