cursor_move(-1,-1) while invalid is invalid #270

This commit is contained in:
nick black 2020-01-12 00:01:15 -05:00 committed by Nick Black
parent fc039b034e
commit 7895d06273

View File

@ -1034,6 +1034,9 @@ ncplane_cursor_move_yx_locked(ncplane* n, int y, int x){
}else{
n->y = y;
}
if(cursor_invalid_p(n)){
return -1;
}
return 0;
}