diff options
| author | Richard M. Stallman | 1993-06-04 05:32:31 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-06-04 05:32:31 +0000 |
| commit | 10608c8c2ae2d2f4049a07a80247670bf9cd532b (patch) | |
| tree | 6b736bb6793265e4ad7fbbe139cfb89d0ede8325 /src/xselect.c | |
| parent | 92c995de734a06ee8e359df2846797158bb0d27a (diff) | |
| download | emacs-10608c8c2ae2d2f4049a07a80247670bf9cd532b.tar.gz emacs-10608c8c2ae2d2f4049a07a80247670bf9cd532b.zip | |
(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, | |||
| 1795 | if (! cut_buffers_initialized) initialize_cut_buffers (display, window); | 1795 | if (! cut_buffers_initialized) initialize_cut_buffers (display, window); |
| 1796 | 1796 | ||
| 1797 | BLOCK_INPUT; | 1797 | BLOCK_INPUT; |
| 1798 | |||
| 1799 | /* Don't mess up with an empty value. */ | ||
| 1800 | if (!bytes_remaining) | ||
| 1801 | XChangeProperty (display, window, buffer_atom, XA_STRING, 8, | ||
| 1802 | PropModeReplace, data, 0); | ||
| 1803 | |||
| 1798 | while (bytes_remaining) | 1804 | while (bytes_remaining) |
| 1799 | { | 1805 | { |
| 1800 | int chunk = (bytes_remaining < max_bytes | 1806 | int chunk = (bytes_remaining < max_bytes |