diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2017-06-23 21:35:42 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2017-06-25 16:35:28 +0200 |
commit | 956dfe23135db0faecfdb66267b7ef28eeb08e14 (patch) | |
tree | 8d918fe5989274da87fac2e19fa071a730285371 /src/plugins | |
parent | 01274beb1535defaa2c73db8ff0afc6b572fc519 (diff) | |
download | weechat-956dfe23135db0faecfdb66267b7ef28eeb08e14.zip |
fset: display number of options before filter in buffer title
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/fset/fset-buffer.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/plugins/fset/fset-buffer.c b/src/plugins/fset/fset-buffer.c index 62b61e7ee..9e3e87b9d 100644 --- a/src/plugins/fset/fset-buffer.c +++ b/src/plugins/fset/fset-buffer.c @@ -64,8 +64,7 @@ fset_buffer_set_title () num_options = weechat_arraylist_size (fset_options); snprintf (str_title, sizeof (str_title), - _("Filter: %s%s%s | %s%d%s/%s%d%s%s | " - "Sort: %s%s%s | " + _("%s%d%s/%s%d%s%s | Filter: %s%s%s | Sort: %s%s%s | " "Key(input): " "alt+space=toggle boolean, " "alt+'-'(-)=subtract 1 or set, " @@ -86,9 +85,6 @@ fset_buffer_set_title () "alt+v(v)=toggle help bar, " "ctrl+X(x)=switch format, " "(q)=close buffer"), - weechat_color (weechat_config_string (fset_config_color_title_filter)), - (fset_option_filter) ? fset_option_filter : "*", - weechat_color ("bar_fg"), weechat_color (weechat_config_string (fset_config_color_title_current_option)), (num_options > 0) ? fset_buffer_selected_line + 1 : 0, weechat_color ("bar_fg"), @@ -96,6 +92,9 @@ fset_buffer_set_title () num_options, weechat_color ("bar_fg"), str_marked, + weechat_color (weechat_config_string (fset_config_color_title_filter)), + (fset_option_filter) ? fset_option_filter : "*", + weechat_color ("bar_fg"), weechat_color (weechat_config_string (fset_config_color_title_sort)), weechat_config_string (fset_config_look_sort), weechat_color ("bar_fg")); |