diff options
Diffstat (limited to 'src/window.c')
-rw-r--r-- | src/window.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/window.c b/src/window.c index ef1b280..8e939b7 100644 --- a/src/window.c +++ b/src/window.c @@ -663,13 +663,15 @@ get_window_list (char *fmt, char *delim, struct sbuf *buffer, if (delim && w->node.next != &rp_mapped_window) sbuf_concat (buffer, delim); - if (w == current_window()) { - if(defaults.window_list_style == STYLE_ROW){ - *mark_end = strlen (sbuf_get (buffer)); - } else { - *mark_end = strlen (sbuf_get(buffer)) - *mark_start; + if (w == current_window()) + { + if(defaults.window_list_style == STYLE_ROW) + { + *mark_end = strlen (sbuf_get (buffer)); + } else { + *mark_end = strlen (sbuf_get(buffer)) - *mark_start; + } } - } } if (!strcmp (sbuf_get (buffer), "")) |