From f8d363f722a7cb14a97f05946fd4f83b9f1afd77 Mon Sep 17 00:00:00 2001 From: elliottcable Date: Fri, 13 Mar 2009 13:45:21 -0400 Subject: [PATCH] Returning nil from `Key.process` if passed -1 --- lib/nfoiled/key.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/nfoiled/key.rb b/lib/nfoiled/key.rb index 07a61e2..98869c3 100644 --- a/lib/nfoiled/key.rb +++ b/lib/nfoiled/key.rb @@ -14,6 +14,7 @@ module Nfoiled ## # Responsible for processing input from `Nfoiled::read!`. Returns def self.process charint + return unless charint && charint != -1 new case charint when nil; then :null when 9, 32..126; then charint.chr -- 2.11.4.GIT