summaryrefslogtreecommitdiff
path: root/desktop/textarea.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-03-06 13:10:37 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2013-03-06 13:10:37 +0000
commit951a58470581899e1937cbb3dc50871984730ec1 (patch)
tree0b3e3bb01b0902dcbc9e47d2f2581f23839ca131 /desktop/textarea.c
parent037beb44fb8f14c80963e54e9b430a0ef03a9d5d (diff)
downloadnetsurf-951a58470581899e1937cbb3dc50871984730ec1.tar.gz
netsurf-951a58470581899e1937cbb3dc50871984730ec1.tar.bz2
Don't show caret if there's a selection.
Diffstat (limited to 'desktop/textarea.c')
-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,