summaryrefslogtreecommitdiff
path: root/src/xselect.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1993-06-04 05:32:31 +0000
committerRichard M. Stallman <rms@gnu.org>1993-06-04 05:32:31 +0000
commit10608c8c2ae2d2f4049a07a80247670bf9cd532b (patch)
tree6b736bb6793265e4ad7fbbe139cfb89d0ede8325 /src/xselect.c
parent92c995de734a06ee8e359df2846797158bb0d27a (diff)
downloademacs-10608c8c2ae2d2f4049a07a80247670bf9cd532b.tar.gz
(Fx_store_cut_buffer_internal): Handle empty string right.
Diffstat (limited to 'src/xselect.c')
-rw-r--r--src/xselect.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xselect.c b/src/xselect.c
index 293029a042f..28438af226a 100644
--- a/src/xselect.c
+++ b/src/xselect.c
@@ -1795,6 +1795,12 @@ DEFUN ("x-store-cut-buffer-internal", Fx_store_cut_buffer_internal,
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