From 951a58470581899e1937cbb3dc50871984730ec1 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 6 Mar 2013 13:10:37 +0000 Subject: Don't show caret if there's a selection. --- desktop/textarea.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'desktop/textarea.c') diff --git a/desktop/textarea.c b/desktop/textarea.c index 26c1e0ba4..3b4e7e93f 100644 --- a/desktop/textarea.c +++ b/desktop/textarea.c @@ -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, -- cgit v1.2.3