diff options
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | src/actions.c | 7 |
2 files changed, 5 insertions, 3 deletions
@@ -3,6 +3,7 @@ * src/actions.c (cmd_groups): print a * beside the current group. if non-interactively called, return the string. (sync_wins): rewrite. + (cmd_groups): always print a column in non-interactive mode. 2003-06-21 Shawn Betts <sabetts@sfu.ca> 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, " "); } |