From 59c17aac1a2f368b3525c2662e8010e023327055 Mon Sep 17 00:00:00 2001 From: Tom Feist Date: Sat, 19 Mar 2011 01:22:01 +0000 Subject: ido-mode/ido_switcher: switch by refnum by default, since /win goto doesn't accept a tag or server argument. --- ido-mode/ido_switcher.pl | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'ido-mode') diff --git a/ido-mode/ido_switcher.pl b/ido-mode/ido_switcher.pl index 66628f1..6eeb7ca 100644 --- a/ido-mode/ido_switcher.pl +++ b/ido-mode/ido_switcher.pl @@ -74,6 +74,13 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +# BUGS: +# +# * Sometimes selecting a channel with the same name on a different +# network will take you to the wrong channel. +# +# +# use strict; use Irssi; use Irssi::TextUI; @@ -404,11 +411,12 @@ sub get_all_windows { } sub ido_switch_select { - my ($selected) = @_; + my ($selected, $tag) = @_; _debug_print "Selecting window: " . $selected->{name}; - Irssi::command("WINDOW GOTO " . $selected->{name}); + # Irssi::command("WINDOW GOTO " . $selected->{name}); + Irssi::command("WINDOW " . $selected->{refnum}); if ($selected->{type} ne 'WIN') { _debug_print "Selecting window item: " . $selected->{itemname}; -- cgit v1.2.3