summaryrefslogtreecommitdiff
path: root/src/actions.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2003-06-23 01:39:43 +0000
committersabetts <sabetts>2003-06-23 01:39:43 +0000
commit21489e8a77fb40c401e3ee5ad7fdaf4ae6a0d49d (patch)
tree8b71532677876bd595c8a427532bcc09a9f6e667 /src/actions.c
parent3832aed09a9d93ef47bc33a80e01747df3585f2a (diff)
downloadratpoison-21489e8a77fb40c401e3ee5ad7fdaf4ae6a0d49d.zip
(cmd_groups): always print a column in non-interactive mode.
Diffstat (limited to 'src/actions.c')
-rw-r--r--src/actions.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/actions.c b/src/actions.c
index ce74a6f..145c409 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -3549,8 +3549,9 @@ cmd_groups (int interactive, char *data)
if (cur == rp_current_group)
mark_start = strlen (sbuf_get (buffer));
- /* Pad start of group name with a space for row style. */
- if (defaults.window_list_style == STYLE_ROW)
+ /* Pad start of group name with a space for row
+ style. non-Interactive always gets a column.*/
+ if (defaults.window_list_style == STYLE_ROW && interactive)
sbuf_concat (buffer, " ");
if(cur == rp_current_group)
@@ -3562,7 +3563,7 @@ cmd_groups (int interactive, char *data)
sbuf_concat (buffer, fmt);
/* Pad end of group name with a space for row style. */
- if (defaults.window_list_style == STYLE_ROW)
+ if (defaults.window_list_style == STYLE_ROW && interactive)
{
sbuf_concat (buffer, " ");
}