diff options
Diffstat (limited to 'desktop/textarea.c')
-rw-r--r-- | desktop/textarea.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/desktop/textarea.c b/desktop/textarea.c index 75b0416e9..f53d435a5 100644 --- a/desktop/textarea.c +++ b/desktop/textarea.c @@ -2627,6 +2627,13 @@ textarea_mouse_status textarea_mouse_action(struct textarea *ta, return status; } + /* Might be outside textarea, and not dragging */ + if ((x >= ta->vis_width || y >= ta->vis_height) && + ta->drag_info.type == TEXTAREA_DRAG_NONE && + ta->flags & TEXTAREA_MULTILINE) { + return status; + } + status |= TEXTAREA_MOUSE_EDITOR; /* Mouse action is textarea's responsibility */ |