aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Feist <shabble@metavore.org>2011-03-19 01:29:30 +0000
committerTom Feist <shabble@metavore.org>2011-03-19 01:29:30 +0000
commit5bf1c009667372e305a52ae07afba6e226ef49f4 (patch)
tree139486c5a69112d0400ddbf28c4e3dfeb4c4dd22
parentido-mode/ido_switcher: oops, /win goto, not just /win <num> (diff)
downloadirssi-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.pl6
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};