summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Amling <keith.amling@gmail.com>2010-05-07 04:57:12 -0700
committerShawn Betts <sabetts@Woaaahdudelike.local>2010-05-07 08:52:04 -0700
commit7ca1af7c055d435888f1c5e3dd02f1456334c599 (patch)
treeb02873572d3062d5d01ccf6dedd55d0ceaff45c5 /src
parent813191c8e9be42d5b113eb35242dc74f5088bddd (diff)
downloadratpoison-7ca1af7c055d435888f1c5e3dd02f1456334c599.zip
fix alias bug
When an alias is executed without arguments, for example aliasing "reload" to "source .ratpoisonrc" and then running "reload" by itself results in "source: .ratpoisonrc : No such file or directory" implying it was trying to load ".ratpoisonrc " (note the extra space).
Diffstat (limited to 'src')
-rw-r--r--src/actions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/actions.c b/src/actions.c
index 2b34a5f..dabb8e5 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -2465,7 +2465,7 @@ command (int interactive, char *data)
/* Append any arguments onto the end of the alias' command. */
s = sbuf_new (0);
sbuf_concat (s, alias_list[i].alias);
- if (rest != NULL)
+ if (rest != NULL && *rest)
sbuf_printf_concat (s, " %s", rest);
alias_recursive_depth++;