cleanup: Don't add linebreak before operators
When breaking overly long conditions into multiple lines, the operator should end the previous line instead of starting the new one. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/731
This commit is contained in:
@ -613,8 +613,8 @@ var PopupMenuBase = class {
|
||||
while (childBeforeIndex >= 0 && !isPopupMenuItemVisible(children[childBeforeIndex]))
|
||||
childBeforeIndex--;
|
||||
|
||||
if (childBeforeIndex < 0
|
||||
|| children[childBeforeIndex]._delegate instanceof PopupSeparatorMenuItem) {
|
||||
if (childBeforeIndex < 0 ||
|
||||
children[childBeforeIndex]._delegate instanceof PopupSeparatorMenuItem) {
|
||||
menuItem.actor.hide();
|
||||
return;
|
||||
}
|
||||
@ -624,8 +624,8 @@ var PopupMenuBase = class {
|
||||
while (childAfterIndex < children.length && !isPopupMenuItemVisible(children[childAfterIndex]))
|
||||
childAfterIndex++;
|
||||
|
||||
if (childAfterIndex >= children.length
|
||||
|| children[childAfterIndex]._delegate instanceof PopupSeparatorMenuItem) {
|
||||
if (childAfterIndex >= children.length ||
|
||||
children[childAfterIndex]._delegate instanceof PopupSeparatorMenuItem) {
|
||||
menuItem.actor.hide();
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user