diff options
author | 2018-05-28 12:45:42 +1000 | |
---|---|---|
committer | 2018-05-28 12:45:42 +1000 | |
commit | 7c7d24600b3db2675b691ae6345ef3fefab03dbd (patch) | |
tree | 27bdca654ca7336acc9018aeedbf6a46751a85c2 /sway/commands/swap.c | |
parent | Merge pull request #2050 from smlx/focus-fix (diff) | |
download | sway-7c7d24600b3db2675b691ae6345ef3fefab03dbd.tar.gz sway-7c7d24600b3db2675b691ae6345ef3fefab03dbd.tar.zst sway-7c7d24600b3db2675b691ae6345ef3fefab03dbd.zip |
Fix ancestor typos
Diffstat (limited to 'sway/commands/swap.c')
-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) { | |||
60 | } else if (current->type < C_CONTAINER || other->type < C_CONTAINER) { | 60 | } else if (current->type < C_CONTAINER || other->type < C_CONTAINER) { |
61 | error = cmd_results_new(CMD_FAILURE, "swap", | 61 | error = cmd_results_new(CMD_FAILURE, "swap", |
62 | "Can only swap with containers and views"); | 62 | "Can only swap with containers and views"); |
63 | } else if (container_has_anscestor(current, other) | 63 | } else if (container_has_ancestor(current, other) |
64 | || container_has_anscestor(other, current)) { | 64 | || container_has_ancestor(other, current)) { |
65 | error = cmd_results_new(CMD_FAILURE, "swap", | 65 | error = cmd_results_new(CMD_FAILURE, "swap", |
66 | "Cannot swap ancestor and descendant"); | 66 | "Cannot swap ancestor and descendant"); |
67 | } else if (current->layout == L_FLOATING || other->layout == L_FLOATING) { | 67 | } else if (current->layout == L_FLOATING || other->layout == L_FLOATING) { |