diff options
author | emersion <contact@emersion.fr> | 2018-05-28 09:16:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-28 09:16:33 +0100 |
commit | 9d1049ae8d25eb78eb94dcf68aadad5eef6e4be1 (patch) | |
tree | c7d20de9d9a46293d7409d624372abf6f796e400 /sway/commands | |
parent | cc1fc3b4a656a544254a80cf32a48d826e7946b2 (diff) | |
parent | 7c7d24600b3db2675b691ae6345ef3fefab03dbd (diff) | |
download | sway-9d1049ae8d25eb78eb94dcf68aadad5eef6e4be1.tar.xz |
Merge pull request #2059 from RyanDwyer/ancestor-typo
Fix ancestor typos
Diffstat (limited to 'sway/commands')
-rw-r--r-- | sway/commands/swap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/commands/swap.c b/sway/commands/swap.c index e925ad33..e8dfc57f 100644 --- a/sway/commands/swap.c +++ b/sway/commands/swap.c @@ -60,8 +60,8 @@ struct cmd_results *cmd_swap(int argc, char **argv) { } else if (current->type < C_CONTAINER || other->type < C_CONTAINER) { error = cmd_results_new(CMD_FAILURE, "swap", "Can only swap with containers and views"); - } else if (container_has_anscestor(current, other) - || container_has_anscestor(other, current)) { + } else if (container_has_ancestor(current, other) + || container_has_ancestor(other, current)) { error = cmd_results_new(CMD_FAILURE, "swap", "Cannot swap ancestor and descendant"); } else if (current->layout == L_FLOATING || other->layout == L_FLOATING) { |