From d34f1785b5ce85c46ec74bcd095cba740049d5d4 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 4 Oct 2010 23:04:39 +0200 Subject: vim_mode: Fix :abc from display all buffers matching c. Reported by estragib. --- vim-mode/vim_mode.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index 61672da..47de3cf 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -1475,7 +1475,7 @@ sub b_windows_cb { # A little code duplication of cmd_ex_command()! my $arg_str = join '', @ex_buf; - if ($arg_str =~ m|b(?:uffer)?\s*(.+)$|) { + if ($arg_str =~ m|^b(?:uffer)?\s*(.+)$|) { my $buffer = $1; if ($buffer !~ /^[0-9]$/ and $buffer ne '#') { # Display matching windows. -- cgit v1.2.3