From 6d616715bb7816c493c99229f76300a6d87e5cf6 Mon Sep 17 00:00:00 2001 From: Tom Feist Date: Sun, 12 Dec 2010 07:22:48 +0000 Subject: ido_switch: SPC jumps to window without exiting mode, RET no longer sends inputline to server --- ido-mode/ido_switcher.pl | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/ido-mode/ido_switcher.pl b/ido-mode/ido_switcher.pl index dc7c542..291d07f 100644 --- a/ido-mode/ido_switcher.pl +++ b/ido-mode/ido_switcher.pl @@ -248,7 +248,6 @@ sub ido_switch_select { Irssi::command("WINDOW ITEM GOTO " . $selected->{itemname}); } - ido_switch_exit(); } sub ido_switch_exit { @@ -424,6 +423,9 @@ sub handle_keypress { _debug_print "selecting history and quitting" if DEBUG; my $selected_win = get_window_match(); ido_switch_select($selected_win); + + ido_switch_exit(); + Irssi::signal_stop(); return; } @@ -476,7 +478,15 @@ sub handle_keypress { return; } - if ($key >= 32) { # printable + if ($key == 32) { # space + my $selected_win = get_window_match(); + ido_switch_select($selected_win); + Irssi::signal_stop(); + + return; + } + + if ($key > 32) { # printable $search_str .= chr($key); update_matches(); -- cgit v1.2.3