Skip to content

Commit 871ca4d

Browse files
committed
oops
1 parent fa003f8 commit 871ca4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kitty/mouse.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ cell_for_pos(Window *w, unsigned int *x, unsigned int *y, bool *in_left_half_of_
154154
double xval = (double)(mouse_x - g->left) / os_window->fonts_data->cell_width;
155155
double fxval = floor(xval);
156156
qx = (unsigned int)fxval;
157-
if (xval - fxval <= 0.5) in_left_half = true;
157+
in_left_half = (xval - fxval <= 0.5) ? true : false;
158158
}
159159
if (mouse_y >= g->bottom) qy = screen->lines - 1;
160160
else if (mouse_y >= g->top) qy = (unsigned int)((double)(mouse_y - g->top) / os_window->fonts_data->cell_height);

0 commit comments

Comments
 (0)