From 2f94b0a949eeceb61a9a06d4d825e54e6fa3f254 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Sun, 20 Jan 2013 17:59:55 +0100 Subject: [PATCH] textarea: C89 --- desktop/textarea.c | 5 +++-- 1 file 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;