diff options
author | Tom Feist <shabble@metavore.org> | 2011-03-19 01:29:30 +0000 |
---|---|---|
committer | Tom Feist <shabble@metavore.org> | 2011-03-19 01:29:30 +0000 |
commit | 5bf1c009667372e305a52ae07afba6e226ef49f4 (patch) | |
tree | 139486c5a69112d0400ddbf28c4e3dfeb4c4dd22 | |
parent | ido-mode/ido_switcher: oops, /win goto, not just /win <num> (diff) | |
download | irssi-scripts-5bf1c009667372e305a52ae07afba6e226ef49f4.tar.gz irssi-scripts-5bf1c009667372e305a52ae07afba6e226ef49f4.zip |
ido-mode/ido_switcher: oops again, try using the actual hash key. Maybe even
test it first?!
-rw-r--r-- | ido-mode/ido_switcher.pl | 6 |
1 files 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}; |