# HG changeset patch # User Richard M. Stallman # Date 739171951 0 # Node ID e1d043cb2f1ae6f290bc5784248e6bc6e054f2ae # Parent 6f05f6e83e94846bb38db48863daa3ceece9fbff (Fx_store_cut_buffer_internal): Handle empty string right. diff -r 6f05f6e83e94 -r e1d043cb2f1a src/xselect.c --- a/src/xselect.c Fri Jun 04 05:22:19 1993 +0000 +++ b/src/xselect.c Fri Jun 04 05:32:31 1993 +0000 @@ -1795,6 +1795,12 @@ if (! cut_buffers_initialized) initialize_cut_buffers (display, window); BLOCK_INPUT; + + /* Don't mess up with an empty value. */ + if (!bytes_remaining) + XChangeProperty (display, window, buffer_atom, XA_STRING, 8, + PropModeReplace, data, 0); + while (bytes_remaining) { int chunk = (bytes_remaining < max_bytes