summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/actions.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/actions.c b/src/actions.c
index f5aad19..8a4fe8d 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -3943,8 +3943,8 @@ set_barinpadding (struct cmdarg **args)
return cmdret_new (RET_SUCCESS, "%d", defaults.bar_in_padding);
new_value = ARG(0,number);
- if (new_value < 0)
- return cmdret_new (RET_FAILURE, "set barborder: invalid argument");
+ if (new_value != 0 && new_value != 1)
+ return cmdret_new (RET_FAILURE, "set barinpadding: invalid argument");
defaults.bar_in_padding = new_value;