From 3812fd80c231dba41da389d575547492c994552c Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 5 Nov 2002 12:21:21 +0000 Subject: use find_index instead of map_index --- perl-install/mouse.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl-install/mouse.pm b/perl-install/mouse.pm index 49ac6ec19..da60bf354 100644 --- a/perl-install/mouse.pm +++ b/perl-install/mouse.pm @@ -109,7 +109,7 @@ sub xmouse2xId { my ($id) = @_; $id = 'BusMouse' if $id eq 'MouseMan'; $id = 'IMPS/2' if $id eq 'ExplorerPS/2' && $::isInstall; - my $i; map_index { $_ eq $id and $i = $::i } @xmousetypes; $i; + find_index { $_ eq $id } @xmousetypes; } my %mouse_btn_keymap = ( -- cgit v1.2.1