--- src/command.c.orig	2008-07-09 14:33:36.000000000 -0700
+++ src/command.c	2019-02-18 20:32:39.000000000 -0800
@@ -5207,7 +5207,7 @@
     i = ch - CSI_ICH;
     ndef = get_byte_array_bit(csi_defaults, i);
     for (p = 0; p < nargs; p++)
-	if (arg[p] == -1)
+	if (arg[p] < 0 || arg[p] > 30000)
 	    arg[p] = ndef;
 
 #ifdef DEBUG
