textarea: C89

This commit is contained in:
François Revol 2013-01-20 17:59:55 +01:00
parent 088cbf5499
commit 2f94b0a949
1 changed files with 3 additions and 2 deletions

View File

@ -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;