Amend a83159f0: Use logical operator ||.

Clang is not mocking here, but it looks more consistent.
This commit is contained in:
Kornel Benko 2022-04-29 19:56:12 +02:00
parent 531fed9543
commit 48c069fa8a

View File

@ -2532,7 +2532,7 @@ void BufferView::mouseEventDispatch(FuncRequest const & cmd0)
// Notify left insets
if (cur != old) {
bool badcursor = old.fixIfBroken() || cur.fixIfBroken();
badcursor |= notifyCursorLeavesOrEnters(old, cur);
badcursor = badcursor || notifyCursorLeavesOrEnters(old, cur);
if (badcursor)
cursor().fixIfBroken();
}