summaryrefslogtreecommitdiff
path: root/desktop/textinput.c
diff options
context:
space:
mode:
authorJeffrey Lee <me@phlamethrower.co.uk>2006-09-10 15:08:30 +0000
committerJeffrey Lee <me@phlamethrower.co.uk>2006-09-10 15:08:30 +0000
commitd19839d334bd404a6b19d389d72bfe70df1195e1 (patch)
treeed5eed015bd68e18894cb975b6fcd4300912979c /desktop/textinput.c
parentf2cd31779b76bbe070a93b5a609011ca3b86f4d8 (diff)
downloadnetsurf-d19839d334bd404a6b19d389d72bfe70df1195e1.tar.gz
netsurf-d19839d334bd404a6b19d389d72bfe70df1195e1.tar.bz2
Fixed spurious newline after pasting into textarea; possibly fixed some selection processing/rendering bugs
svn path=/trunk/netsurf/; revision=2942
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) {