e0b4a2e5f189e8306fc9dacbbe5505765fa872d7

Author
outfoxxed <outfoxxed@outfoxxed.me>
Committer
outfoxxed <outfoxxed@outfoxxed.me>
Date

Message

Fix selection/move wraparound behavior in the root node

Diff

 1diff --git a/src/Hy3Layout.cpp b/src/Hy3Layout.cpp
 2index bd12c42b0c95145d435031ad5fd97792d0619eda..cb907ad47b4a7d55fce7461040c99ea6a2756388 100644
 3--- a/src/Hy3Layout.cpp
 4+++ b/src/Hy3Layout.cpp
 5@@ -1035,9 +1035,8 @@ Hy3Node* shiftOrGetFocus(Hy3Node& node, ShiftDirection direction, bool shift) {
 6 				break;
 7 		}
 8 
 9-		// always break at the outermost group
10 		if (break_parent->parent == nullptr) {
11-			break;
12+			return nullptr;
13 		} else {
14 			break_origin = break_parent;
15 			break_parent = break_origin->parent;