aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode
diff options
context:
space:
mode:
authorTom Feist <shabble@metavore.org>2010-09-28 00:57:44 +0000
committerTom Feist <shabble@metavore.org>2010-09-28 00:57:44 +0000
commitcb9713847d969ea621e2c2439eded1b272acd82c (patch)
tree07b7675434045ac170e7c148cb2fa18e2c25982e /vim-mode
parentcleaned up the todo list and some of the header comments, including mentioning (diff)
parentvim_mode: Add debug output for :b window. (diff)
downloadirssi-scripts-cb9713847d969ea621e2c2439eded1b272acd82c.tar.gz
irssi-scripts-cb9713847d969ea621e2c2439eded1b272acd82c.zip
Merge remote branch 'origin/dev'
Diffstat (limited to 'vim-mode')
-rw-r--r--vim-mode/vim_mode.pl6
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;
}
}
}