mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-26 11:24:57 +03:00
Don't show caret if there's a selection.
This commit is contained in:
parent
037beb44fb
commit
951a584705
@ -460,7 +460,8 @@ static void textarea_scrollbar_callback(void *client_data,
|
||||
|
||||
ta->callback(ta->data, &msg);
|
||||
|
||||
if (!(ta->flags & TEXTAREA_INTERNAL_CARET)) {
|
||||
if (!(ta->flags & TEXTAREA_INTERNAL_CARET) &&
|
||||
ta->sel_start == -1) {
|
||||
/* Tell client where caret should be placed */
|
||||
struct rect cr = {
|
||||
.x0 = ta->border_width,
|
||||
|
Loading…
x
Reference in New Issue
Block a user