[kitty] properly emit m=1 on 2-chunk graphics #1426

This commit is contained in:
nick black 2021-03-20 05:43:18 -04:00
parent 2393548e38
commit 3ea1a79250

View File

@ -79,7 +79,7 @@ write_kitty_data(FILE* fp, int linesize, int leny, int lenx,
//fprintf(stderr, "total: %d chunks = %d, s=%d,v=%d\n", total, chunks, lenx, leny);
while(chunks--){
if(totalout == 0){
fprintf(fp, "\e_Gf=32,s=%d,v=%d,i=%d,a=T,%c=1;", lenx, leny, sprixelid, chunks > 1 ? 'm' : 'q');
fprintf(fp, "\e_Gf=32,s=%d,v=%d,i=%d,a=T,%c=1;", lenx, leny, sprixelid, chunks ? 'm' : 'q');
}else{
fprintf(fp, "\e_G%sm=%d;", chunks ? "" : "q=1,", chunks ? 1 : 0);
}