diff options
author | Simon Ruderich <simon@ruderich.org> | 2010-09-28 01:26:18 +0000 |
---|---|---|
committer | Simon Ruderich <simon@ruderich.org> | 2010-09-28 01:28:54 +0000 |
commit | 2096ac515f05cf524a441299d86493502b6f6397 (patch) | |
tree | 565b526bb661fd3495a01c95ac61e94559182a90 /vim-mode/vim_mode.pl | |
parent | Merge remote branch 'origin/dev' (diff) | |
download | irssi-scripts-2096ac515f05cf524a441299d86493502b6f6397.tar.gz irssi-scripts-2096ac515f05cf524a441299d86493502b6f6397.zip |
vim_mode: :b Ignore case.
Diffstat (limited to 'vim-mode/vim_mode.pl')
-rw-r--r-- | vim-mode/vim_mode.pl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index 5ae2467..f61ce95 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -726,12 +726,11 @@ sub cmd_ex_command { Irssi::command('window last'); # Go to best regex matching window. } else { - my $regex = qr/\Q$buffer\E/; my @matches; foreach my $window (Irssi::windows()) { # Matching window names. - if ($window->{name} =~ /$regex/) { + if ($window->{name} =~ /$buffer/i) { my $ratio = ($+[0] - $-[0]) / length($window->{name}); push @matches, { window => $window, item => undef, @@ -740,7 +739,7 @@ sub cmd_ex_command { } # Matching Window item names (= channels). foreach my $item ($window->items()) { - if ($item->{name} =~ /$regex/) { + if ($item->{name} =~ /$buffer/i) { my $length = length($item->{name}); $length-- if index($item->{name}, '#') == 0; my $ratio = ($+[0] - $-[0]) / $length; |