summaryrefslogtreecommitdiffstats
path: root/scripts/history_search.pl
diff options
context:
space:
mode:
authorAilin Nemui2015-12-09 23:35:34 +0100
committerAilin Nemui2015-12-09 23:45:50 +0100
commitdeff3c0a63d0839911aa921523b6aa0c1a372135 (patch)
tree9726cd0695b6d728cec3e60d9d5371123f4ce58e /scripts/history_search.pl
parent8f41a31c389b2f94323af349f1edcf3bd0ed4cb5 (diff)
downloadscripts.irssi.org-deff3c0a63d0839911aa921523b6aa0c1a372135.tar.bz2
script fixes for the icrnl change in irssi
- accept ^M in addition to ^J as enter key for scripts which use raw gui key pressed (won't solve KP_ENTER issue)
Diffstat (limited to 'scripts/history_search.pl')
-rw-r--r--scripts/history_search.pl5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/history_search.pl b/scripts/history_search.pl
index 9a2c066..48cbe63 100644
--- a/scripts/history_search.pl
+++ b/scripts/history_search.pl
@@ -25,7 +25,7 @@ use Irssi 20070804;
use Irssi::TextUI;
use vars qw($VERSION %IRSSI);
-$VERSION = '2.0';
+$VERSION = '2.1';
%IRSSI = (
authors => 'Wouter Coekaerts',
contact => 'coekie@irssi.org',
@@ -33,7 +33,6 @@ $VERSION = '2.0';
description => 'Search within your typed history as you type (like ctrl-R in bash)',
license => 'GPLv2 or later',
url => 'http://wouter.coekaerts.be/irssi/',
- changed => '17/01/09'
);
# is the searching enabled?
@@ -78,7 +77,7 @@ Irssi::command_bind('history_search', sub {
Irssi::signal_add_last 'gui key pressed' => sub {
my ($key) = @_;
- if ($key == 10 || $key == 27) { # enter or escape
+ if ($key == 10 || $key == 13 || $key == 27) { # enter or escape
$enabled = 0;
}