1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-05-18 00:48:57 -04:00

[plain] Show sixel images in plaintext document as before

This commit is contained in:
Witold Filipczyk 2025-01-25 16:42:27 +01:00
parent dea05f7867
commit 9809c60d1d

View File

@ -495,18 +495,20 @@ draw_doc(struct session *ses, struct document_view *doc_view, int active)
copy_struct(&im, im2);
int x;
int found = 0;
for (x = 0; x < data[im.y].length; x++) {
if ((im.image_number == data[im.y].ch.chars[x].data - 33) && (im.image_number == data[im.y].ch.chars[x+1].data - 33)) {
found = 1;
break;
}
}
int x = 0;
int found = vs->plain;
if (!found) {
continue;
for (;x < data[im.y].length; x++) {
if ((im.image_number == data[im.y].ch.chars[x].data - 33) && (im.image_number == data[im.y].ch.chars[x+1].data - 33)) {
found = 1;
break;
}
}
if (!found) {
continue;
}
}
im.x += box->x;
im.y += box->y;