Skip to content

Commit

Permalink
#2479 change config option from global to space specific
Browse files Browse the repository at this point in the history
  • Loading branch information
koekeishiya committed Jan 2, 2025
1 parent e0d686f commit c97357c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/view.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,10 @@ static inline enum window_node_split window_node_get_split(struct view *view, st
{
if (node->split != SPLIT_NONE) return node->split;

if (view->split_type != SPLIT_NONE && view->split_type != SPLIT_AUTO) {
return view->split_type;
if (view->split_type != SPLIT_NONE) {
if (view->split_type != SPLIT_AUTO) {
return view->split_type;
}
} else if (g_space_manager.split_type != SPLIT_AUTO) {
return g_space_manager.split_type;
}
Expand Down

0 comments on commit c97357c

Please sign in to comment.