diff options
author | taiyu <taiyu.len@gmail.com> | 2015-08-16 13:38:54 -0700 |
---|---|---|
committer | taiyu <taiyu.len@gmail.com> | 2015-08-16 13:38:54 -0700 |
commit | 5b860c67c3d8fcded0f88715fc69053f81c10449 (patch) | |
tree | 762ecfc92de12eed31e8b7352e97af9fe609f045 /sway/commands.c | |
parent | 75144318367dddd110f97c5693b2d543b7564f15 (diff) |
fixed split [vh], small memory leak, unescape_strings handle \xnn
Diffstat (limited to 'sway/commands.c')
-rw-r--r-- | sway/commands.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/commands.c b/sway/commands.c index 5cb661eb..842142e2 100644 --- a/sway/commands.c +++ b/sway/commands.c @@ -285,9 +285,9 @@ static bool cmd_split(struct sway_config *config, int argc, char **argv) { return false; } if (strcasecmp(argv[0], "v") == 0 || strcasecmp(argv[0], "vertical") == 0) { - _do_split(config, argc, argv, L_VERT); + _do_split(config, argc - 1, argv + 1, L_VERT); } else if (strcasecmp(argv[0], "h") == 0 || strcasecmp(argv[0], "horizontal") == 0) { - _do_split(config, argc, argv, L_HORIZ); + _do_split(config, argc - 1, argv + 1, L_HORIZ); } else { sway_log(L_ERROR, "Invalid split command (expected either horiziontal or vertical)."); return false; |