From 5bf1c009667372e305a52ae07afba6e226ef49f4 Mon Sep 17 00:00:00 2001 From: Tom Feist Date: Sat, 19 Mar 2011 01:29:30 +0000 Subject: ido-mode/ido_switcher: oops again, try using the actual hash key. Maybe even test it first?! --- ido-mode/ido_switcher.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ido-mode/ido_switcher.pl b/ido-mode/ido_switcher.pl index db44523..cd789f8 100644 --- a/ido-mode/ido_switcher.pl +++ b/ido-mode/ido_switcher.pl @@ -413,10 +413,10 @@ sub get_all_windows { sub ido_switch_select { my ($selected, $tag) = @_; - _debug_print "Selecting window: " . $selected->{name}; + _debug_print sprintf("Selecting window: %s (%d)", + $selected->{name}, $selected->{num}); - # Irssi::command("WINDOW GOTO " . $selected->{name}); - Irssi::command("WINDOW GOTO" . $selected->{refnum}); + Irssi::command("WINDOW GOTO" . $selected->{num}); if ($selected->{type} ne 'WIN') { _debug_print "Selecting window item: " . $selected->{itemname}; -- cgit v1.2.3