From 4ad7cde52a924d87af026c2dc2af8033e62edc4d Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Tue, 28 Sep 2010 02:36:14 +0200 Subject: vim_mode: Add debug output for :b window. --- vim-mode/vim_mode.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index 46ae7cc..eadcce2 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -707,15 +707,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; } } } -- cgit v1.2.3