summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsabetts <sabetts>2005-04-09 19:43:23 +0000
committersabetts <sabetts>2005-04-09 19:43:23 +0000
commitbc225e837dc36daf803436fd11d7a244a608b320 (patch)
tree2692f6c41da8b8543b3bc7e124f30455dba8e40b
parente3a8f7b786534df114086a9755b202160a3475f0 (diff)
downloadratpoison-bc225e837dc36daf803436fd11d7a244a608b320.zip
(cmd_set): pass the string produced when no args are passid in to
cmdret_new using "%s".
-rw-r--r--ChangeLog5
-rw-r--r--src/actions.c2
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 3121b9b..b281c6f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,10 @@
2005-04-09 Shawn <sabetts@monk.lamenet>
- * src/actions.c (init_user_commands): add KEY argument to meta command.
+ * src/actions.c (init_user_commands): add KEY argument to meta
+ command.
(cmd_meta): optionally use the KEY passed in as an argument.
+ (cmd_set): pass the string produced when no args are passid in to
+ cmdret_new using "%s".
2005-03-05 <sabetts@localhost>
diff --git a/src/actions.c b/src/actions.c
index acf8426..043d313 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -4755,7 +4755,7 @@ cmd_set (int interactive, struct cmdarg **args)
}
/* Return the accumulated string. */
- ret = cmdret_new (RET_SUCCESS, sbuf_get (s));
+ ret = cmdret_new (RET_SUCCESS, "%s", sbuf_get (s));
sbuf_free (s);
return ret;
}