diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2014-03-03 21:34:44 +0100 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2014-03-03 21:34:44 +0100 |
commit | 5fdd6dbcf939806b6102c027d0b41c5efea07a11 (patch) | |
tree | a3c82837151d1db5ece75deb63040b9e19e4a58f | |
parent | ca8d94d249452ccc16f506aa70983ea0bd945c5b (diff) | |
download | ratpoison-5fdd6dbcf939806b6102c027d0b41c5efea07a11.zip |
Correct error message in set_barinpadding.
-rw-r--r-- | src/actions.c | 4 |
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; |