mirror of
https://github.com/rkd77/elinks.git
synced 2024-09-28 03:06:20 -04:00
[color] memcmp for comparison of colors
Weak point is for example: 256 colors, compiled with true colors.
This commit is contained in:
parent
c3c9041487
commit
53522b8946
@ -316,7 +316,7 @@ draw_current_link(struct session *ses, struct document_view *doc_view)
|
|||||||
|
|
||||||
if (i == cursor_offset) {
|
if (i == cursor_offset) {
|
||||||
int blockable = (!link_is_textinput(link)
|
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_cursor(term, x, y, blockable);
|
||||||
set_window_ptr(ses->tab, x, y);
|
set_window_ptr(ses->tab, x, y);
|
||||||
|
Loading…
Reference in New Issue
Block a user