summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
Diffstat (limited to 'desktop')
-rw-r--r--desktop/textarea.c3
1 files changed, 2 insertions, 1 deletions
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,