summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--src/actions.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 093bf6d..4428568 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2002-02-02 Shawn Betts <sabetts@vcn.bc.ca>
+ * src/actions.c (cmd_defbarpadding): print an error message if
+ defbarpadding is called interactively without arguments.
+
* src/events.c (handle_signals): only hide the bar if it times
out.
diff --git a/src/actions.c b/src/actions.c
index bbb50b9..d2e45a5 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -2342,7 +2342,7 @@ cmd_defbarpadding (int interactive, void *data)
{
int x, y;
- if (data == NULL)
+ if (data == NULL && !interactive)
return xsprintf ("%d %d", defaults.bar_x_padding, defaults.bar_y_padding);
if (data == NULL