changeset 3473:e1d043cb2f1a

(Fx_store_cut_buffer_internal): Handle empty string right.
author Richard M. Stallman <rms@gnu.org>
date Fri, 04 Jun 1993 05:32:31 +0000
parents 6f05f6e83e94
children 9eaa2151f7f6
files src/xselect.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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