diff options
author | sabetts <sabetts> | 2003-06-23 01:39:43 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2003-06-23 01:39:43 +0000 |
commit | 21489e8a77fb40c401e3ee5ad7fdaf4ae6a0d49d (patch) | |
tree | 8b71532677876bd595c8a427532bcc09a9f6e667 | |
parent | 3832aed09a9d93ef47bc33a80e01747df3585f2a (diff) | |
download | ratpoison-21489e8a77fb40c401e3ee5ad7fdaf4ae6a0d49d.zip |
(cmd_groups): always print a column in non-interactive mode.
-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, " "); } |