1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

Fix x_construct_mouse_click || vs | typo

* src/xterm.c (x_construct_mouse_click): ‘||’ → ‘|’.
Typo found by clang 18.1.6 -Wbool-operation.
This commit is contained in:
Paul Eggert 2024-08-16 20:49:18 -07:00
parent 8c81818673
commit ed305c4b98

View file

@ -14691,7 +14691,7 @@ x_construct_mouse_click (struct input_event *result,
result->kind = (event->type != ButtonRelease ? NO_EVENT
: wheel & 2 ? HORIZ_WHEEL_EVENT : WHEEL_EVENT);
result->code = 0; /* Not used. */
result->modifiers &= ~(up_modifier || down_modifier);
result->modifiers &= ~(up_modifier | down_modifier);
result->modifiers |= wheel & 1 ? up_modifier : down_modifier;
}
}