Fix selection/move wraparound behavior in the root node

This commit is contained in:
outfoxxed 2023-04-22 02:40:21 -07:00
parent c90a3078c0
commit e0b4a2e5f1
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E

View file

@ -1035,9 +1035,8 @@ Hy3Node* shiftOrGetFocus(Hy3Node& node, ShiftDirection direction, bool shift) {
break;
}
// always break at the outermost group
if (break_parent->parent == nullptr) {
break;
return nullptr;
} else {
break_origin = break_parent;
break_parent = break_origin->parent;