diff --git a/src/winio.c b/src/winio.c
index bf2f30d9094badc4d6954ebabaf8141a1b2eb382..7b509d97338b1098eae35b0e1a8f3afd4d4efd3d 100644
--- a/src/winio.c
+++ b/src/winio.c
@@ -1284,12 +1284,6 @@ long get_unicode_kbinput(int kbinput)
 	    if (retval == ERR)
 		retval = uni;
 	    break;
-	default:
-	    /* If there are more than six digits, return this character
-	     * as the result.  (Maybe we should produce an error
-	     * instead?) */
-	    retval = kbinput;
-	    break;
     }
 
     /* If we have a result, reset the Unicode digit counter and the