Backport ed305c4b98 to emacs-30

* src/xterm.c (x_construct_mouse_click): `||' → `|'.
Typo found by clang 18.1.6 -Wbool-operation.  Do not
merge to master.
This commit is contained in:
Po Lu 2024-08-17 16:19:06 +08:00
parent 6a512ab032
commit 8d5f88d326

View file

@ -14699,7 +14699,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;
}
}