Commit 10608c8c authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(Fx_store_cut_buffer_internal): Handle empty string right.

parent 92c995de
......@@ -1795,6 +1795,12 @@ DEFUN ("x-store-cut-buffer-internal", Fx_store_cut_buffer_internal,
if (! cut_buffers_initialized) initialize_cut_buffers (display, window);
/* 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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment