Don't show caret if there's a selection.

This commit is contained in:
Michael Drake 2013-03-06 13:10:37 +00:00
parent 037beb44fb
commit 951a584705

View File

@ -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,