diff options
author | Tom Feist <shabble@metavore.org> | 2010-12-23 20:54:54 +0000 |
---|---|---|
committer | Tom Feist <shabble@metavore.org> | 2010-12-23 20:54:54 +0000 |
commit | e302913e147a7eea9679029ed3ddb129c988341c (patch) | |
tree | 788e1d6d8dc81490438866c82021856636276004 | |
parent | ido_switch: searching by number now shows all items having that number as a p... (diff) | |
download | irssi-scripts-e302913e147a7eea9679029ed3ddb129c988341c.tar.gz irssi-scripts-e302913e147a7eea9679029ed3ddb129c988341c.zip |
ido_switch: fix to only allow numbers that are prefixes.
-rw-r--r-- | ido-mode/ido_switcher.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ido-mode/ido_switcher.pl b/ido-mode/ido_switcher.pl index c06a7f4..bd5c703 100644 --- a/ido-mode/ido_switcher.pl +++ b/ido-mode/ido_switcher.pl @@ -350,7 +350,7 @@ sub update_matches { @search_matches = grep { - _check_active($_) and $_->{num} =~ m/\Q$search_str\E/ + _check_active($_) and $_->{num} =~ m/^\Q$search_str\E/ } @window_cache; } elsif ($ido_use_flex) { |