1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-25 01:05:37 +00:00

[screen] Test commit. Added element_offset to struct screen_char

This commit is contained in:
Witold Filipczyk 2024-01-21 17:02:09 +01:00
parent 937f6b415e
commit 5c8b62247a
2 changed files with 3 additions and 0 deletions

View File

@ -275,6 +275,7 @@ get_format_screen_char(struct html_context *html_context,
schar_cache.attr |= SCREEN_ATTR_UNDERLINE;
}
schar_cache.element_offset = (elformat.top_name && html_context->document && html_context->document->text.source) ? elformat.top_name - html_context->document->text.source : 0;
return &schar_cache;
}

View File

@ -64,6 +64,8 @@ struct screen_char {
unsigned char color[SCREEN_COLOR_SIZE];
unsigned int node_number;
} c;
unsigned int element_offset;
};
/** @relates screen_char */