textarea: C89
This commit is contained in:
parent
088cbf5499
commit
2f94b0a949
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue