render: hackerman

This commit is contained in:
Daniel Eklöf 2019-07-08 20:25:41 +02:00
parent 729974492d
commit 6d48f0f2a5
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -55,7 +55,7 @@ render_cell(struct terminal *term, struct buffer *buf, const struct cell *cell,
: !term->reverse ? &term->background : &term->foreground;
/* If *one* is set, we reverse */
if (has_cursor != cell->attrs.reverse) {
if (has_cursor ^ cell->attrs.reverse) {
const struct rgb *swap = foreground;
foreground = background;
background = swap;