#
-# alias.conf -- weechat v1.0.1
+# alias.conf -- weechat v1.1
#
[cmd]
#
-# aspell.conf -- weechat v1.0.1
+# aspell.conf -- weechat v1.1
#
[color]
#
-# buffer_autoset.conf -- weechat v1.0.1
+# buffer_autoset.conf -- weechat v1.1
#
[buffer]
#
-# buffers.conf -- weechat v1.0.1
+# buffers.conf -- weechat v1.1
#
[color]
#
-# charset.conf -- weechat v1.0.1
+# charset.conf -- weechat v1.1
#
[default]
#
-# exec.conf -- weechat v1.0.1
+# exec.conf -- weechat v1.1
#
[command]
#
-# iset.conf -- weechat v1.0.1
+# iset.conf -- weechat v1.1
#
[color]
#
-# logger.conf -- weechat v1.0.1
+# logger.conf -- weechat v1.1
#
[look]
#
# History:
#
+# 2014-12-12
+# v5.0: fix cropping non-latin buffer names
# 2014-08-29, Patrick Steinhardt <ps@pks.im>:
# v4.9: add support for specifying custom buffer names
# 2014-07-19, Sebastien Helleu <flashcode@flashtux.org>:
use Encode qw( decode encode );
# -----------------------------[ internal ]-------------------------------------
my $SCRIPT_NAME = "buffers";
-my $SCRIPT_VERSION = "4.9";
+my $SCRIPT_VERSION = "5.0";
my $BUFFERS_CONFIG_FILE_NAME = "buffers";
my $buffers_config_file;
if (weechat::config_integer($options{"name_size_max"}) >= 1) # check max_size of buffer name
{
- $str .= encode("UTF-8", substr(decode("UTF-8", $name), 0, weechat::config_integer($options{"name_size_max"})));
+ $name = decode("UTF-8", $name);
+ $str .= encode("UTF-8", substr($name, 0, weechat::config_integer($options{"name_size_max"})));
$str .= weechat::color(weechat::config_color( $options{"color_number_char"})).weechat::config_string($options{"name_crop_suffix"}) if (length($name) > weechat::config_integer($options{"name_size_max"}));
$str .= add_inactive_parentless($buffer->{"type"}, $buffer->{"nicks_count"});
$str .= add_hotlist_count($buffer->{"pointer"}, %hotlist);
#
-# plugins.conf -- weechat v1.0.1
+# plugins.conf -- weechat v1.1
#
[var]
#
-# relay.conf -- weechat v1.0.1
+# relay.conf -- weechat v1.1
#
[look]
max_clients = 5
password = ""
ssl_cert_key = "%h/ssl/relay.pem"
+ssl_priorities = "NORMAL:-VERS-SSL3.0"
websocket_allowed_origins = ""
[irc]
#
-# script.conf -- weechat v1.0.1
+# script.conf -- weechat v1.1
#
[look]
dir = "%h/script"
hold = ""
url = "http://www.weechat.org/files/plugins.xml.gz"
+url_force_https = on
#
-# sec.conf -- weechat v1.0.1
+# sec.conf -- weechat v1.1
#
[crypt]
#
-# trigger.conf -- weechat v1.0.1
+# trigger.conf -- weechat v1.1
#
[look]
#
-# weechat.conf -- weechat v1.0.1
+# weechat.conf -- weechat v1.1
#
[debug]
color_pairs_auto_reset = 5
color_real_white = off
command_chars = ""
+command_incomplete = off
confirm_quit = off
day_change = off
day_change_message_1date = "-- %a, %d %b %Y --"
input_undo_max = 32
item_buffer_filter = "•"
item_buffer_zoom = "!"
+item_mouse_status = "M"
item_time_format = "%H:%M"
jump_current_to_previous_buffer = on
jump_previous_buffer_when_closing = on
status_data_private = 121
status_filter = green
status_more = 229
+status_mouse = green
status_name = 121
status_name_ssl = 121
status_nicklist_count = default
[completion]
base_word_until_cursor = on
+command_inline = off
default_template = "%(nicks)|%(irc_channels)"
nick_add_space = on
nick_completer = ":"
#
-# xfer.conf -- weechat v1.0.1
+# xfer.conf -- weechat v1.1
#
[look]