[PATCH] return the correct value when set_barinpadding is called without arguments

Antti Nykänen <[email protected]>
Newsgroups gmane.comp.window-managers.ratpoison.devel
Message-ID <[email protected]>
Hi,

Currently, when you execute C-t : set barinpadding, you actually get the
bar's border width. This patch fixes that.

---
 src/actions.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/actions.c b/src/actions.c
index c977075..678ec70 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -3721,7 +3721,7 @@ set_barinpadding (struct cmdarg **args)
   int new_value;
 
   if (args[0] == NULL)
-    return cmdret_new (RET_SUCCESS, "%d", defaults.bar_border_width);
+    return cmdret_new (RET_SUCCESS, "%d", defaults.bar_in_padding);
 
   new_value = ARG(0,number);
   if (new_value < 0)
-- 
1.6.0.2
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.