mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-02 09:40:15 +00:00
ncplane_erase_region: grotesque copy-and-paste bug =[
This commit is contained in:
parent
94edc372e5
commit
9733835673
@ -2142,7 +2142,7 @@ int ncplane_erase_region(ncplane* n, int ystart, int xstart, int ylen, int xlen)
|
||||
return -1;
|
||||
}
|
||||
if(xlen == 0){
|
||||
xlen = ncplane_dim_x(n) - ystart;
|
||||
xlen = ncplane_dim_x(n) - xstart;
|
||||
}
|
||||
for(int y = ystart ; y < ystart + ylen ; ++y){
|
||||
for(int x = xstart ; x < xstart + xlen ; ++x){
|
||||
|
Loading…
Reference in New Issue
Block a user