demo: no newline chars in diags, stupid asshole #1622

pull/1623/head
nick black 3 years ago
parent f4e4806ed9
commit e3d4bffd28
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -529,10 +529,10 @@ postinit_checks(struct notcurses* nc, struct ncplane* n){
if(bitmaps > 0){
ncplane_set_fg_rgb(n, 0x22cc22);
ncplane_set_styles(n, NCSTYLE_ITALIC);
ncplane_putstr(n, "yes!\n");
ncplane_putstr(n, "yes!");
}else{
ncplane_set_fg_rgb(n, 0xff9999);
ncplane_putstr(n, "no.\n");
ncplane_putstr(n, "no.");
}
return notcurses_render(nc);
}

@ -1503,6 +1503,7 @@ ncplane_put(ncplane* n, int y, int x, const char* egc, int cols,
}
// FIXME don't we need to check here for wide character on edge (though our
// docs currently claim that a wide char on edge is allowed...)?
// FIXME ought not be allowed when scrolling is disabled!
if(*egc == '\n'){
scroll_down(n);
return 0;

Loading…
Cancel
Save