Squash GCC7 warning for ‘~’ on a boolean expression.

This commit is contained in:
Michael Drake 2017-10-23 09:49:34 +01:00
parent e418416c77
commit 2557335f1b
1 changed files with 1 additions and 1 deletions

View File

@ -2861,7 +2861,7 @@ bool textarea_keypress(struct textarea *ta, uint32_t key)
return false;
}
redraw &= ~textarea_set_caret_internal(ta, caret);
redraw &= !textarea_set_caret_internal(ta, caret);
/* TODO: redraw only the bit that changed */
msg.ta = ta;