Skip to content

Commit

Permalink
Fix a paste slip in sqUnixExtendedClipboard.c
Browse files Browse the repository at this point in the history
  • Loading branch information
eliotmiranda committed Mar 25, 2023
1 parent 5e3aea8 commit 4382815
Showing 1 changed file with 5 additions and 8 deletions.
Expand Up @@ -50,7 +50,7 @@ void clipboardWriteWithType(char * data, size_t ndata, char * typeName, size_t n
// can be done directly. eem. '23/3/25

void
sqPasteboardClear( sqInt inPasteboard )
sqPasteboardClear(sqInt inPasteboard)
{
// perhaps PrimErrUnsupported is better, but it's inaccurate
// we don't yet have PrimErrUnimplemented
Expand Down Expand Up @@ -124,16 +124,13 @@ sqPasteboardCopyItemFlavorsitemNumber(sqInt inPasteboard, int formatNumber)
return outData;
}

/* In X11 clipboard is global in a display, so it just return 1 */
/* In X11 clipboard is global in a display, so just return 1 */
sqInt
sqCreateClipboard( void )
{
return 1;
}
sqCreateClipboard(void) { return 1; }


void
sqPasteboardPutItemFlavordatalengthformatTypeformatLength( sqInt inPasteboard, char * data, int ndata, char * typeName, int ntypeName)
sqPasteboardPutItemFlavordatalengthformatTypeformatLength(sqInt inPasteboard, char * data, int ndata, char * typeName, int ntypeName)
{
clipboardWriteWithType(data, ndata, typeName, ntypeName, 0, 1);
}
Expand All @@ -149,7 +146,7 @@ sqPasteboardCopyItemFlavorDataformatformatLength(sqInt inPasteboard, char* forma
return outData;
}

sqPasteboardCopyItemFlavorDataformat(CLIPBOARDTYPE inPasteboard, sqInt format)
sqPasteboardCopyItemFlavorDataformat(sqInt inPasteboard, sqInt format)
{
interpreterProxy->primitiveFailFor(PrimErrUnsupported);
return interpreterProxy->nilObject();
Expand Down

0 comments on commit 4382815

Please sign in to comment.