summaryrefslogtreecommitdiffstats
path: root/scripts/per_window_prompt.pl
diff options
context:
space:
mode:
authordx2015-12-13 21:42:03 -0300
committerdx2015-12-13 21:42:03 -0300
commitbc2aed9695ddf98e0c54918021b16b89ebe8074c (patch)
tree9726cd0695b6d728cec3e60d9d5371123f4ce58e /scripts/per_window_prompt.pl
parent8f41a31c389b2f94323af349f1edcf3bd0ed4cb5 (diff)
parentdeff3c0a63d0839911aa921523b6aa0c1a372135 (diff)
downloadscripts.irssi.org-bc2aed9695ddf98e0c54918021b16b89ebe8074c.tar.bz2
Merge pull request #207 from ailin-nemui/icrnl-fixes
script fixes for the icrnl change in irssi
Diffstat (limited to 'scripts/per_window_prompt.pl')
-rw-r--r--scripts/per_window_prompt.pl5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/per_window_prompt.pl b/scripts/per_window_prompt.pl
index 1f3a52f..128de70 100644
--- a/scripts/per_window_prompt.pl
+++ b/scripts/per_window_prompt.pl
@@ -21,7 +21,7 @@ use Irssi 20070804;
use Irssi::TextUI;
use vars qw($VERSION %IRSSI);
-$VERSION = '1.0';
+$VERSION = '1.1';
%IRSSI = (
authors => 'Wouter Coekaerts',
contact => 'coekie@irssi.org',
@@ -29,7 +29,6 @@ $VERSION = '1.0';
description => 'Keeps a prompt per window',
license => 'GPLv2 or later',
url => 'http://wouter.coekaerts.be/irssi/',
- changed => '04/08/07'
);
my %prompts;
@@ -80,7 +79,7 @@ sub UNLOAD {
Irssi::signal_add_first 'gui key pressed' => sub {
my ($key) = @_;
- if ($key == 10 && ! $in_command) {
+ if (($key == 10 || $key == 13) && ! $in_command) {
$win_before_command = winkey(Irssi::active_win);
$win_before_command_deleted = 0;
$in_command = 1;