aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Feist <shabble@metavore.org>2011-03-19 01:22:01 +0000
committerTom Feist <shabble@metavore.org>2011-03-19 01:22:01 +0000
commit59c17aac1a2f368b3525c2662e8010e023327055 (patch)
treec6f77511026ef983fe4441bb8633b7ee4236e4ed
parenttesting: adapted rudi's vim_mode insert test to new format. seems to work fine. (diff)
downloadirssi-scripts-59c17aac1a2f368b3525c2662e8010e023327055.tar.gz
irssi-scripts-59c17aac1a2f368b3525c2662e8010e023327055.zip
ido-mode/ido_switcher: switch by refnum by default, since /win goto doesn't
accept a tag or server argument.
-rw-r--r--ido-mode/ido_switcher.pl12
1 files changed, 10 insertions, 2 deletions
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};