Commits

Anonymous committed afa6e1d

cursor play pause stuff

  • Participants
  • Parent commits 7797c41

Comments (0)

Files changed (1)

 	int print_flag = 0;
 	static int i = -1, j = -1;
 
-	if (i < i_org || i > i_org + rows)
-		i = i_org ? i_org + rows / 2 : size / 2;
-	if (j < j_org || j > j_org + cols)
-		j = j_org ? j_org + cols / 2 : size / 2;
+	if (i < i_org || i > i_org + rows || j < j_org || j > j_org + cols) {
+		i = size > rows ? i_org + rows / 2 : size / 2;
+		j = size > cols ? j_org + cols / 2 : size / 2;
+	}
 
 	set.c_cc[VMIN] = 1;
 	tcsetattr(0, TCSANOW, &set);