aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-10-10 01:13:22 +0000
committerSimon Ruderich <simon@ruderich.org>2010-10-10 01:13:22 +0000
commit34fd58554a4369523a02bde26bdd75bf09c76ff0 (patch)
tree017851b586521ad05c427231481769ec53928b05
parentvim_mode: Support counts with ex-commands. (diff)
downloadirssi-scripts-34fd58554a4369523a02bde26bdd75bf09c76ff0.tar.gz
irssi-scripts-34fd58554a4369523a02bde26bdd75bf09c76ff0.zip
vim_mode: Fix :bd from displaying buffers matching d.
Diffstat (limited to '')
-rw-r--r--vim-mode/vim_mode.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl
index 828f5a8..2eefd66 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -1952,9 +1952,10 @@ sub b_windows_cb {
my $windows = '';
- # A little code duplication of cmd_ex_command()!
+ # A little code duplication of cmd_ex_command(), but \s+ instead of \s* so
+ # :bd doesn't display buffers matching d.
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.