mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[plain] done_string(&pixels)
This commit is contained in:
parent
82d76921cd
commit
9582f865a6
@ -651,20 +651,22 @@ add_document_line(struct plain_renderer *renderer,
|
|||||||
}
|
}
|
||||||
if (end[1] == '\\') {
|
if (end[1] == '\\') {
|
||||||
struct string pixels;
|
struct string pixels;
|
||||||
|
int how_many;
|
||||||
|
|
||||||
if (!init_string(&pixels)) {
|
if (!init_string(&pixels)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
add_bytes_to_string(&pixels, line + line_pos, end + 2 - line - line_pos);
|
add_bytes_to_string(&pixels, line + line_pos, end + 2 - line - line_pos);
|
||||||
int ile = add_image_to_document(document, &pixels, lineno) + 1;
|
how_many = add_image_to_document(document, &pixels, lineno) + 1;
|
||||||
|
done_string(&pixels);
|
||||||
|
|
||||||
realloc_line(document, pos - startpos, lineno);
|
realloc_line(document, pos - startpos, lineno);
|
||||||
|
|
||||||
for (int i = 0; i < ile; i++) {
|
for (int i = 0; i < how_many; i++) {
|
||||||
realloc_line(document, 0, lineno + i);
|
realloc_line(document, 0, lineno + i);
|
||||||
}
|
}
|
||||||
renderer->lineno += ile;
|
renderer->lineno += how_many;
|
||||||
lineno += ile;
|
lineno += how_many;
|
||||||
line_pos = end + 2 - line;
|
line_pos = end + 2 - line;
|
||||||
startpos = pos = realloc_line(document, width, lineno);
|
startpos = pos = realloc_line(document, width, lineno);
|
||||||
goto zero;
|
goto zero;
|
||||||
|
Loading…
Reference in New Issue
Block a user