summaryrefslogtreecommitdiff
path: root/desktop/textarea.c
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/textarea.c')
-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;