summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérémie Courrèges-Anglas <jca@wxcvbn.org>2014-03-03 21:34:44 +0100
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2014-03-03 21:34:44 +0100
commit5fdd6dbcf939806b6102c027d0b41c5efea07a11 (patch)
treea3c82837151d1db5ece75deb63040b9e19e4a58f
parentca8d94d249452ccc16f506aa70983ea0bd945c5b (diff)
downloadratpoison-5fdd6dbcf939806b6102c027d0b41c5efea07a11.zip
Correct error message in set_barinpadding.
-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;