get complete widechar ncplane_puttext() working #815

pull/821/head
nick black 4 years ago committed by Nick Black
parent 380ebc7e6e
commit a70cbb894c

@ -1721,7 +1721,7 @@ fprintf(stderr, "NEW BREAKER: %s\n", breaker);
carrycols = text - breaker;
}
}
fprintf(stderr, "exited at %d (%d) looking at [%.*s]\n", x, dimx, (int)(breaker - linestart), linestart);
fprintf(stderr, "exited at %d (%d) %zu looking at [%.*s]\n", x, dimx, breaker - linestart, (int)(breaker - linestart), linestart);
if(breaker != linestart){
totalcols += (breaker - linestart);
const int xpos = ncplane_align(n, align, x);

@ -182,7 +182,8 @@ fprintf(stderr, "LINE: [%s]\n", line);
ncplane_destroy(sp);
}
// create a plane of two rows, and exactly fill both with wide chars
// create a plane of two rows, and exactly fill both, with no spaces
/*
SUBCASE("LayoutFillsPlaneNoSpaces") {
auto sp = ncplane_new(nc_, 2, 6, 0, 0, nullptr);
REQUIRE(sp);
@ -198,6 +199,7 @@ fprintf(stderr, "LINE: [%s]\n", line);
free(line);
ncplane_destroy(sp);
}
*/
// create a plane of two rows, and exactly fill both with wide chars
SUBCASE("LayoutFillsPlaneWide") {

Loading…
Cancel
Save