aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/reline.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline.rb b/lib/reline.rb
index 33aa6cdbf1..82337c19ad 100644
--- a/lib/reline.rb
+++ b/lib/reline.rb
@@ -25,7 +25,7 @@ module Reline
elsif key.is_a?(Integer) or key.is_a?(Symbol)
if not combined_char.nil? and combined_char == key
true
- elsif not char.nil? and char == key
+ elsif combined_char.nil? and not char.nil? and char == key
true
else
false