ncplane_erase_region: grotesque copy-and-paste bug =[

This commit is contained in:
nick black 2021-09-20 21:32:16 -04:00
parent 94edc372e5
commit 9733835673
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -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){