diff options
author | Richard M. Stallman <rms@gnu.org> | 1993-06-04 05:32:31 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1993-06-04 05:32:31 +0000 |
commit | 4fb2468a42772ccf8c9a41e39401ee4a31f56c71 (patch) | |
tree | daebd0c04c8301008269a6242df0f08b5cff8c31 /src/xselect.c | |
parent | 1791bf2756eaaed1a8587f1542d4490cece5fe91 (diff) | |
download | emacs-4fb2468a42772ccf8c9a41e39401ee4a31f56c71.tar.gz |
(Fx_store_cut_buffer_internal): Handle empty string right.
Diffstat (limited to 'src/xselect.c')
-rw-r--r-- | src/xselect.c | 6 |
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 |