aboutsummaryrefslogtreecommitdiffstats
path: root/weechat
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2017-06-01 18:55:40 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2017-06-01 18:55:40 +0200
commit39b6e2bf1f94ed58cdef26568e7274290693d2c2 (patch)
treecd3d7a9d2847cb190da841f06d67ed33e587def6 /weechat
parentd3318d4d28e9a4e2d08b3e4a1c7d5e313c8af5f7 (diff)
downloaddotfiles-39b6e2bf1f94ed58cdef26568e7274290693d2c2.tar.xz
weechat: iset: 4.2 -> 4.3
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Diffstat (limited to 'weechat')
-rw-r--r--weechat/perl/iset.pl16
1 files changed, 13 insertions, 3 deletions
diff --git a/weechat/perl/iset.pl b/weechat/perl/iset.pl
index 163dfb5..d6c9364 100644
--- a/weechat/perl/iset.pl
+++ b/weechat/perl/iset.pl
@@ -1,6 +1,6 @@
#
-# Copyright (C) 2008-2014 Sebastien Helleu <flashcode@flashtux.org>
-# Copyright (C) 2010-2015 Nils Görs <weechatter@arcor.de>
+# Copyright (C) 2008-2017 Sebastien Helleu <flashcode@flashtux.org>
+# Copyright (C) 2010-2017 Nils Görs <weechatter@arcor.de>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -19,6 +19,8 @@
#
# History:
#
+# 2017-04-14, nils_2 <freenode.#weechat>
+# version 4.3: add option "use_color" (https://github.com/weechat/scripts/issues/93)
# 2016-07-08, nils_2 <weechatter@arcor.de>
# version 4.2: add diff function
# 2016-02-06, Sebastien Helleu <flashcode@flashtux.org>:
@@ -130,7 +132,7 @@
use strict;
my $PRGNAME = "iset";
-my $VERSION = "4.2";
+my $VERSION = "4.3";
my $DESCR = "Interactive Set for configuration options";
my $AUTHOR = "Sebastien Helleu <flashcode\@flashtux.org>";
my $LICENSE = "GPL3";
@@ -619,6 +621,10 @@ sub iset_refresh_line
}
}
my $value = $options_values[$y];
+ if (weechat::config_boolean($options_iset{"use_color"}) == 1 and $options_types[$y] eq "color")
+ {
+ $value = weechat::color($options_values[$y]) . $options_values[$y];
+ }
if ($options_is_null[$y])
{
$value = "null";
@@ -1509,6 +1515,10 @@ sub iset_config_init
$iset_config_file, $section_look,
"use_mute", "boolean", "/mute command will be used in input bar", "", 0, 0,
"off", "off", 0, "", "", "", "", "", "");
+ $options_iset{"use_color"} = weechat::config_new_option(
+ $iset_config_file, $section_look,
+ "use_color", "boolean", "display the color value in the corresponding color", "", 0, 0,
+ "off", "off", 0, "", "", "full_refresh_cb", "", "", "");
}
sub iset_config_reload_cb