From 7ca1af7c055d435888f1c5e3dd02f1456334c599 Mon Sep 17 00:00:00 2001 From: Keith Amling Date: Fri, 7 May 2010 04:57:12 -0700 Subject: 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). --- src/actions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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++; -- cgit v1.2.3