sixel: don’t emit DECGNL after the last row

Emitting DECGNL is the sixel equivalent of printing ‘\n’, and can
cause the terminal content to scroll.
pull/1394/head
Daniel Eklöf 4 years ago committed by Nick Black
parent e277df390b
commit 3e8e51525a

@ -194,7 +194,9 @@ write_sixel_data(FILE* fp, int lenx, sixeltable* stab){
if(i + 1 < stab->ctab->colors){
fputc('$', fp);
}else{
fputc('-', fp);
if(p + lenx < stab->ctab->sixelcount){
fputc('-', fp);
}
}
}
p += lenx;

Loading…
Cancel
Save