Applied, thanks.
On Sun, Apr 22, 2012 at 05:44:14PM +0100, Thomas Adam wrote:
> This allows for specifying the character(s) for separating windows on the
> status line.
> ---
> trunk/options-table.c | 5 +++++
> trunk/status.c | 10 ++++++++--
> trunk/tmux.1 | 4 ++++
> 3 files changed, 17 insertions(+), 2 deletions(-)
>
> diff --git a/trunk/options-table.c b/trunk/options-table.c
> index 1eb50e4..c03295f 100644
> --- a/trunk/options-table.c
> +++ b/trunk/options-table.c
> @@ -690,6 +690,11 @@ const struct options_table_entry window_options_table[]
> = {
> .default_str = "#I:#W#F"
> },
>
> + { .name = "window-status-separator",
> + .type = OPTIONS_TABLE_STRING,
> + .default_str = " "
> + },
> +
> { .name = "wrap-search",
> .type = OPTIONS_TABLE_FLAG,
> .default_num = 1
> diff --git a/trunk/status.c b/trunk/status.c
> index 8a5f20b..435c324 100644
> --- a/trunk/status.c
> +++ b/trunk/status.c
> @@ -230,7 +230,10 @@ status_redraw(struct client *c)
>
> if (wl == s->curw)
> wloffset = wlwidth;
> - wlwidth += wl->status_width + 1;
> +
> + wlwidth += wl->status_width + screen_write_strlen(utf8flag,
> "%s",
> + options_get_string(&wl->window->options,
> + "window-status-separator"));
> }
>
> /* Create a new screen for the window list. */
> @@ -241,7 +244,10 @@ status_redraw(struct client *c)
> RB_FOREACH(wl, winlinks, &s->windows) {
> screen_write_cnputs(&ctx,
> -1, &wl->status_cell, utf8flag, "%s", wl->status_text);
> - screen_write_putc(&ctx, &stdgc, ' ');
> +
> + screen_write_nputs(&ctx, -1, &stdgc, utf8flag, "%s",
> + options_get_string(&wl->window->options,
> + "window-status-separator"));
> }
> screen_write_stop(&ctx);
>
> diff --git a/trunk/tmux.1 b/trunk/tmux.1
> index 2975268..6a1e6c1 100644
> --- a/trunk/tmux.1
> +++ b/trunk/tmux.1
> @@ -2697,6 +2697,10 @@ option for details of special character sequences
> available.
> The default is
> .Ql #I:#W#F .
> .Pp
> +.It Ic window-status-separator Ar string
> +Sets the separator drawn between windows in the status line.
> +The default is a single space character.
> +.Pp
> .It Xo Ic xterm-keys
> .Op Ic on | off
> .Xc
> --
> 1.7.10
>
>
> ------------------------------------------------------------------------------
> For Developers, A Lot Can Happen In A Second.
> Boundary is the first to Know...and Tell You.
> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
> http://p.sf.net/sfu/Boundary-d2dvs2
> _______________________________________________
> tmux-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tmux-users
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
tmux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-users