diff options
author | Tom Feist <shabble@metavore.org> | 2010-09-28 00:57:44 +0000 |
---|---|---|
committer | Tom Feist <shabble@metavore.org> | 2010-09-28 00:57:44 +0000 |
commit | cb9713847d969ea621e2c2439eded1b272acd82c (patch) | |
tree | 07b7675434045ac170e7c148cb2fa18e2c25982e /vim-mode | |
parent | cleaned up the todo list and some of the header comments, including mentioning (diff) | |
parent | vim_mode: Add debug output for :b window. (diff) | |
download | irssi-scripts-cb9713847d969ea621e2c2439eded1b272acd82c.tar.gz irssi-scripts-cb9713847d969ea621e2c2439eded1b272acd82c.zip |
Merge remote branch 'origin/dev'
Diffstat (limited to '')
-rw-r--r-- | vim-mode/vim_mode.pl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index 9bcf436..5ae2467 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -736,15 +736,19 @@ sub cmd_ex_command { push @matches, { window => $window, item => undef, ratio => $ratio }; + print ":b $window->{name}: $ratio" if DEBUG; } # Matching Window item names (= channels). foreach my $item ($window->items()) { if ($item->{name} =~ /$regex/) { my $length = length($item->{name}); $length-- if index($item->{name}, '#') == 0; + my $ratio = ($+[0] - $-[0]) / $length; push @matches, { window => $window, item => $item, - ratio => ($+[0] - $-[0]) / $length }; + ratio => $ratio }; + print ":b $window->{name} $item->{name}: $ratio" + if DEBUG; } } } |