aboutsummaryrefslogtreecommitdiffstats
path: root/weechat/perl
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-01-20 00:27:25 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2015-01-20 00:27:25 +0100
commitcdf59136a4f34ecfbbe459789cf568ac21328804 (patch)
tree8dabd9d5a9625a23729cb6d678bae08d1f86df0a /weechat/perl
parent766cd1bb7af7320afe11b97d2ab58435a46e1849 (diff)
downloaddotfiles-cdf59136a4f34ecfbbe459789cf568ac21328804.tar.xz
weechat: iset.pl: 3.5 → 3.6
Diffstat (limited to 'weechat/perl')
-rw-r--r--weechat/perl/iset.pl16
1 files changed, 14 insertions, 2 deletions
diff --git a/weechat/perl/iset.pl b/weechat/perl/iset.pl
index cc2b28d..f179022 100644
--- a/weechat/perl/iset.pl
+++ b/weechat/perl/iset.pl
@@ -19,6 +19,8 @@
#
# History:
#
+# 2014-09-30, arza <arza@arza.us>:
+# version 3.6: fix current line counter when options aren't found
# 2014-06-03, nils_2 <weechatter@arcor.de>:
# version 3.5: add new option "use_mute"
# 2014-01-30, stfn <stfnmd@gmail.com>:
@@ -115,7 +117,7 @@
use strict;
my $PRGNAME = "iset";
-my $VERSION = "3.5";
+my $VERSION = "3.6";
my $DESCR = "Interactive Set for configuration options";
my $AUTHOR = "Sebastien Helleu <flashcode\@flashtux.org>";
my $LICENSE = "GPL3";
@@ -155,7 +157,17 @@ sub iset_title
if ($iset_buffer ne "")
{
my $current_line_counter = "";
- $current_line_counter = ($current_line + 1) . "/" if (weechat::config_boolean($options_iset{"show_current_line"}) == 1);
+ if (weechat::config_boolean($options_iset{"show_current_line"}) == 1)
+ {
+ if (@options_names eq 0)
+ {
+ $current_line_counter = "0/";
+ }
+ else
+ {
+ $current_line_counter = ($current_line + 1) . "/";
+ }
+ }
my $show_filter = "";
if ($search_mode eq 0)
{