summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFran├žois Revol <revol@free.fr>2013-01-20 17:59:55 +0100
committerFran├žois Revol <revol@free.fr>2013-01-20 17:59:55 +0100
commit2f94b0a949eeceb61a9a06d4d825e54e6fa3f254 (patch)
tree8a1e16fb6a7ba7541d753465f3796baf80100d08
parent088cbf5499ff17c9a1d57b443d6ed5e1595ad726 (diff)
downloadnetsurf-2f94b0a949eeceb61a9a06d4d825e54e6fa3f254.tar.gz
netsurf-2f94b0a949eeceb61a9a06d4d825e54e6fa3f254.tar.bz2
textarea: C89
-rw-r--r--desktop/textarea.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/desktop/textarea.c b/desktop/textarea.c
index d10039a2f..e94360e5b 100644
--- a/desktop/textarea.c
+++ b/desktop/textarea.c
@@ -1391,12 +1391,13 @@ bool textarea_keypress(struct textarea *ta, uint32_t key)
break;
case KEY_PASTE:
{
- if (readonly)
- break;
char *clipboard;
size_t clipboard_length;
size_t clipboard_chars;
+ if (readonly)
+ break;
+
gui_get_clipboard(&clipboard, &clipboard_length);
if (clipboard == NULL)
return false;