Skip to content

Commit 4263225

Browse files
committed
Fix bounds-checking bug
1 parent a2bfe39 commit 4263225

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/frontend.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ void draw_collab_cursors(collab_list_t *collab_list) {
377377
for (int i = 0; i < collab_list->len; i++) {
378378
c = collab_list->list[i];
379379
// only draw cursors that exist and are visible on the screen
380-
if (c != NULL && (c->x >= min_x && c->y <= max_x) &&
380+
if (c != NULL && (c->x >= min_x && c->x <= max_x) &&
381381
(c->y >= min_y && c->y <= max_y)) {
382382
logd("Drawing collab %i\n", c->uid);
383383

0 commit comments

Comments
 (0)