summaryrefslogtreecommitdiff
path: root/desktop/textinput.c
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/textinput.c')
-rw-r--r--desktop/textinput.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop/textinput.c b/desktop/textinput.c
index f0d2b8b6b..fb0cc7b3c 100644
--- a/desktop/textinput.c
+++ b/desktop/textinput.c
@@ -1199,6 +1199,8 @@ bool browser_window_textarea_paste_text(struct browser_window *bw,
return false;
char_offset += utf8_len;
+ if (p == ep)
+ break;
new_text = textarea_insert_break(bw, text_box, char_offset);
if (!new_text) {