mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-28 17:23:09 +03:00
Add parentheses.
This commit is contained in:
parent
0f08d885a0
commit
7a0b347563
@ -1251,9 +1251,9 @@ void textarea_redraw(struct textarea *ta, int x, int y, colour bg,
|
||||
|
||||
plot->clip(clip);
|
||||
|
||||
if (ta->sel_end == -1 || ta->sel_start == ta->sel_end &&
|
||||
if ((ta->sel_end == -1 || ta->sel_start == ta->sel_end) &&
|
||||
ta->caret_pos.char_off >= 0) {
|
||||
/* There is no selection; draw caret */
|
||||
/* There is no selection, and caret visible: draw caret */
|
||||
int caret_y = y - ta->scroll_y + ta->caret_y + text_y_offset;
|
||||
int caret_height = caret_y + ta->line_height;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user