From e302913e147a7eea9679029ed3ddb129c988341c Mon Sep 17 00:00:00 2001 From: Tom Feist Date: Thu, 23 Dec 2010 20:54:54 +0000 Subject: ido_switch: fix to only allow numbers that are prefixes. --- ido-mode/ido_switcher.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3