diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-03-27 13:46:57 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-03-27 13:46:57 +0000 |
commit | 3529d39759393135969b045be8e858cd15b6019e (patch) | |
tree | c7a9e589e59462664c8ed8ad79b5314148d9eccd /desktop/textarea.c | |
parent | e2bcc5f5eb67815b2c9ec64357c4976e18080c48 (diff) | |
download | netsurf-3529d39759393135969b045be8e858cd15b6019e.tar.gz netsurf-3529d39759393135969b045be8e858cd15b6019e.tar.bz2 |
Don't show caret when scrolling a textarea that hasn't been given focus.
Diffstat (limited to 'desktop/textarea.c')
-rw-r--r-- | desktop/textarea.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop/textarea.c b/desktop/textarea.c index f53d435a5..9b2e52bc0 100644 --- a/desktop/textarea.c +++ b/desktop/textarea.c @@ -691,7 +691,8 @@ static void textarea_scrollbar_callback(void *client_data, ta->callback(ta->data, &msg); if (!(ta->flags & TEXTAREA_INTERNAL_CARET) && - ta->sel_start == -1) { + ta->sel_start < 0 && + ta->caret_pos.byte_off >= 0) { /* Tell client where caret should be placed */ int x = ta->caret_x - ta->scroll_x; int y = ta->caret_y - ta->scroll_y; |