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

[color] memcmp for comparison of colors

Weak point is for example:
256 colors, compiled with true colors.
This commit is contained in:
Witold Filipczyk 2023-11-21 18:35:13 +01:00
parent c3c9041487
commit 53522b8946

View File

@ -316,7 +316,7 @@ draw_current_link(struct session *ses, struct document_view *doc_view)
if (i == cursor_offset) {
int blockable = (!link_is_textinput(link)
&& co->c.color != template_->c.color);
&& memcmp(co->c.color, template_->c.color, sizeof(template_->c.color)));
set_cursor(term, x, y, blockable);
set_window_ptr(ses->tab, x, y);