Skip to content

Commit

Permalink
#487 properly update insert feedback upon change
Browse files Browse the repository at this point in the history
  • Loading branch information
koekeishiya committed Apr 25, 2020
1 parent 19b691e commit 318444c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/view.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,9 @@ void window_node_update(struct view *view, struct window_node *node)
area_make_pair(view, node->parent);
}

if (!window_node_is_leaf(node)) {
if (window_node_is_leaf(node)) {
if (node->insert_dir) insert_feedback_show(node);
} else {
window_node_update(view, node->left);
window_node_update(view, node->right);
}
Expand Down

0 comments on commit 318444c

Please sign in to comment.