Fix the 31position test
This commit is contained in:
		@@ -378,7 +378,7 @@ handle_csi_R (termo_t *tk, termo_key_t *key, int cmd, long *arg, int args)
 | 
			
		||||
			return TERMO_RES_NONE;
 | 
			
		||||
 | 
			
		||||
		key->type = TERMO_TYPE_POSITION;
 | 
			
		||||
		termo_key_set_linecol (key, arg[1], arg[0]);
 | 
			
		||||
		termo_key_set_linecol (key, arg[0] - 1, arg[1] - 1);
 | 
			
		||||
		return TERMO_RES_KEY;
 | 
			
		||||
 | 
			
		||||
	default:
 | 
			
		||||
 
 | 
			
		||||
@@ -21,8 +21,8 @@ int main (int argc, char *argv[])
 | 
			
		||||
	is_int (termo_interpret_position (tk, &key, &line, &col), TERMO_RES_KEY,
 | 
			
		||||
		"interpret_position yields RES_KEY");
 | 
			
		||||
 | 
			
		||||
	is_int (line, 15, "line for position report");
 | 
			
		||||
	is_int (col, 7, "column for position report");
 | 
			
		||||
	is_int (line, 14, "line for position report");
 | 
			
		||||
	is_int (col, 6, "column for position report");
 | 
			
		||||
 | 
			
		||||
	// A plain CSI R is likely to be <F3> though.  This is tricky :/
 | 
			
		||||
	termo_push_bytes (tk, "\e[R", 3);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user