From a966944a427dde9117739ba1d9098b64ce35c3d5 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Fri, 2 Mar 2007 08:38:42 +0000
Subject: [PATCH] Fix bug in last that would cause things such as
 shift/alt/ctrl presses to be stuffed into the input buffer as NULLs.

---
 src/conio/sdl_con.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/conio/sdl_con.c b/src/conio/sdl_con.c
index 0cd36775f9..0b9009728b 100644
--- a/src/conio/sdl_con.c
+++ b/src/conio/sdl_con.c
@@ -1602,6 +1602,8 @@ unsigned int sdl_get_char_code(unsigned int keysym, unsigned int mod, unsigned i
 				}
 			}
 		}
+
+		return(0x0001ffff);
 	}
 	if(unicode <= 0x7f)
 		return(unicode);
-- 
GitLab