##############################################################################
#
-# mh_windowfill.pl v1.04 (20151128)
+# mh_windowfill.pl v1.05 (20151206)
#
# Copyright (c) 2015 Michael Hansen
#
# with script: http://picpaste.com/e3b84ead852e3e77b12ed69383f1f80c.png
#
# history:
+# v1.05 (20151206)
+# added a few comments
# v1.04 (20151128)
# call windowfill* directly from signals
# removed on load timeout
use Irssi 20100403;
use Irssi::TextUI;
-our $VERSION = '1.04';
+our $VERSION = '1.05';
our %IRSSI =
(
'name' => 'mh_windowfill',
my $line = $window->view()->get_lines();
my $linecount = 0;
+ #
+ # count lines we need to move
+ #
while ($line)
{
$linecount++;
$line = $window->view()->get_lines();
+ #
+ # move lines down
+ #
while ($linecount)
{
my $linetext = $line->get_text(1);
#
##############################################################################
+windowfill_all();
+
Irssi::signal_add_last('mainwindow resized', 'windowfill_all');
Irssi::signal_add_last('window created', 'windowfill');
Irssi::command_bind('clear', 'command_clear');
-windowfill_all();
-
1;
##############################################################################