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

pull/1427/head
nick black 3 years ago
parent 2393548e38
commit 3ea1a79250

@ -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);
}

Loading…
Cancel
Save